fn setCapacity(self: *Self, allocator: Allocator, new_capacity: usize) Allocator.Error!void
Grows or shrinks capacity to match usage. TODO update this and related methods to match the conventions set by ArrayList
self: *Self,
allocator: Allocator,
new_capacity: usize,