omit
Returns a new map with the entries of map except those whose key is in keys.
Keys that are not in map are ignored. The complement of pick.
Import
Section titled “Import”Cargo feature map (enabled by default). To compile only this module:
or in Cargo.toml:
Signature
Section titled “Signature”Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
map | &HashMap<K, V, S> | The map to filter. |
keys | &[K] | The keys to leave out. |
Returns
Section titled “Returns”HashMap<K, V>
