pub fn addOneAssumeCapacity(self: *Self) usize
Extend the list by 1 element, returning the newly reserved index with uninitialized data.
Asserts that capacity is sufficient to hold an additional item.
self: *Self
312 313 314 315 316 317
pub fn addOneAssumeCapacity(self: *Self) usize { assert(self.len < self.capacity); const index = self.len; self.len += 1; return index; }
Extend the list by 1 element, returning the newly reserved index with uninitialized data.
Asserts that capacity is sufficient to hold an additional item.