fn initCapacity(allocator: Allocator, num: usize) Allocator.Error!Self

Initialize with capacity to hold num elements. The resulting capacity will equal num exactly. Deinitialize with deinit or use toOwnedSlice.

Parameters

allocator: Allocator,
num: usize,