fn allocatedSlice(self: *const Self) []T
Returns a slice of all the items plus the extra capacity, whose memory contents are undefined.
undefined
self: *const Self
133 134 135 136
fn allocatedSlice(self: *const Self) []T { // `items.len` is the length, not the capacity. return self.items.ptr[0..self.cap]; }
Returns a slice of all the items plus the extra capacity, whose memory contents are
undefined.