fn toOwnedSliceSentinel(self: *Self, comptime sentinel: T) Allocator.Error!SentinelSlice(sentinel)

The caller owns the returned memory. Empties this ArrayList.

Parameters

self: *Self,
sentinel: T,