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.

Parameters

self: *Self,
gpa: Allocator,
new_capacity: usize,