deinit
Free a BufSet along with all stored keys.
Function parameters
Parameters
- self:*BufSet
A BufSet is a set of strings.
Types
- BufSet
- A BufSet is a set of strings.
Source
Implementation
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;
}