Function merge_hashmaps

Source
pub fn merge_hashmaps<K, V>(
    base: HashMap<K, V>,
    overlay: HashMap<K, V>,
) -> HashMap<K, V>
where K: Hash + Eq,
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