Function deinit [src]
Free a BufSet along with all stored keys.
Prototype
pub fn deinit(self: *BufSet) void
Parameters
self: *BufSet
Source
pub fn deinit(self: *BufSet) void {
var it = self.hash_map.keyIterator();
while (it.next()) |key_ptr| {
self.free(key_ptr.*);
}
self.hash_map.deinit();
self.* = undefined;
}