pub fn deinit(self: Self, allocator: mem.Allocator) void
this method should only be used with init() and not with initComptime().
self: Self
allocator: mem.Allocator
180 181 182 183 184 185
pub fn deinit(self: Self, allocator: mem.Allocator) void { allocator.free(self.len_indexes[0..self.len_indexes_len]); allocator.free(self.kvs.keys[0..self.kvs.len]); allocator.free(self.kvs.values[0..self.kvs.len]); allocator.destroy(self.kvs); }
this method should only be used with init() and not with initComptime().