pub fn appendSlice(self: *Self, items: []const T) Allocator.Error!void
Append the slice of items to the list. Allocates more memory as necessary. Invalidates element pointers if additional memory is needed.
self: *Self
items: []const T
332 333 334 335
pub fn appendSlice(self: *Self, items: []const T) Allocator.Error!void { try self.ensureUnusedCapacity(items.len); self.appendSliceAssumeCapacity(items); }
Append the slice of items to the list. Allocates more memory as necessary. Invalidates element pointers if additional memory is needed.