Function merge_hashmaps
Source pub fn merge_hashmaps<K, V>(
base: HashMap<K, V>,
overlay: HashMap<K, V>,
) -> HashMap<K, V>
Expand description
Merges two HashMaps, with values from the second map taking precedence
§Arguments
base
- The base HashMap
overlay
- The overlay HashMap
§Returns
A merged HashMap