Function deinit [src]
Free the backing storage of the map, as well as all
of the stored keys and values.
Prototype
pub fn deinit(self: *BufMap) void
Parameters
self: *BufMap
Source
pub fn deinit(self: *BufMap) void {
var it = self.hash_map.iterator();
while (it.next()) |entry| {
self.free(entry.key_ptr.*);
self.free(entry.value_ptr.*);
}
self.hash_map.deinit();
}