pub fn append(self: *Self, gpa: Allocator, elem: T) Allocator.Error!void
Extend the list by 1 element.
Allocates more memory as necessary.
self: *Self
gpa: Allocator
elem: T
276 277 278 279
pub fn append(self: *Self, gpa: Allocator, elem: T) Allocator.Error!void { try self.ensureUnusedCapacity(gpa, 1); self.appendAssumeCapacity(elem); }
Extend the list by 1 element.
Allocates more memory as necessary.