pub fn appendAssumeCapacity(self: *Self, elem: T) void
Extend the list by 1 element.
Asserts that capacity is sufficient to hold an additional item.
self: *Self
elem: T
284 285 286 287 288
pub fn appendAssumeCapacity(self: *Self, elem: T) void { assert(self.len < self.capacity); self.len += 1; self.set(self.len - 1, elem); }
Extend the list by 1 element.
Asserts that capacity is sufficient to hold an additional item.