Function remove [src]
Removes the item from the map and frees its value.
This invalidates the value returned by get() for this key.
Prototype
pub fn remove(self: *BufMap, key: []const u8) void
Parameters
self: *BufMap
key: []const u8
Source
pub fn remove(self: *BufMap, key: []const u8) void {
const kv = self.hash_map.fetchRemove(key) orelse return;
self.free(kv.key);
self.free(kv.value);
}