map
Helpers for HashMap that the standard library does not provide.
Inputs are borrowed and results are new maps: nothing is mutated.
Install
Section titled “Install”Cargo feature map (enabled by default). To compile only this module:
or in Cargo.toml:
Import path: helpers4::map.
| Item | What it does |
|---|---|
map_values | Returns a new map with the same keys and each value replaced by f(value). |
omit | Returns a new map with the entries of map except those whose key is in keys. |
pick | Returns a new map with only the entries of map whose key is in keys. |
