fn setCapacity(self: *Self, gpa: Allocator, new_capacity: usize) !void
Modify the array so that it can hold exactly new_capacity items. Invalidates pointers if additional memory is needed. new_capacity must be greater or equal to len.
new_capacity
len
self: *Self,
gpa: Allocator,
new_capacity: usize,