pub fn appendSliceBounded(self: *Self, items: []const T) error self: *Selfitems: []const T1124
1125
1126
1127 pub fn appendSliceBounded(self: *Self, items: []const T) error{OutOfMemory}!void {
if (self.capacity - self.items.len < items.len) return error.OutOfMemory;
return appendSliceAssumeCapacity(self, items);
}
Append the slice of items to the list. Never invalidates element pointers. If the list lacks unused capacity for the additional items, returns
error.OutOfMemory.