Function remove [src]
Removes the item from the map and frees its value.
This invalidates the value returned by get() for this key.
On Windows key must be a valid WTF-8 string.
Prototype
pub fn remove(self: *EnvMap, key: []const u8) void
Parameters
self: *EnvMap
key: []const u8
Source
pub fn remove(self: *EnvMap, key: []const u8) void {
assert(unicode.wtf8ValidateSlice(key));
const kv = self.hash_map.fetchRemove(key) orelse return;
self.free(kv.key);
self.free(kv.value);
}