fn toOwnedSliceSentinel(self: *Self, comptime sentinel: T) Allocator.Error!SentinelSlice(sentinel)
The caller owns the returned memory. Empties this ArrayList.
self: *Self,
sentinel: T,