Function resize [src]

Resizes to a new length. If the new length is larger than the old length, fills any added bits with fill.

Prototype

pub fn resize(self: *@This(), new_len: usize, fill: bool) !void

Parameters

self: *@This()new_len: usizefill: bool

Source

pub fn resize(self: *@This(), new_len: usize, fill: bool) !void { try self.unmanaged.resize(self.allocator, new_len, fill); }