Function merge2::hashmap::replace

source ·
pub fn replace<K: Eq + Hash, V>(
    left: &mut HashMap<K, V>,
    right: &mut HashMap<K, V>
)
Expand description

On conflict, replace elements of left with right.

In other words, this gives precedence to right.