Function ensureTotalStackCapacity [src]
Pre allocate memory to hold the given number of nesting levels.
stackHeight() up to the given number will not cause allocations.
Prototype
pub fn ensureTotalStackCapacity(self: *@This(), height: usize) Allocator.Error!void Parameters
self: *@This()height: usize Source
pub fn ensureTotalStackCapacity(self: *@This(), height: usize) Allocator.Error!void {
try self.stack.ensureTotalCapacity(height);
}