Skip to main content

insert

Function insert 

Source
pub fn insert<K: Eq + Hash, V>(
    map: &mut HashMap<K, V>,
    key: K,
    value: V,
) -> Option<V>
Expand description

Insert value into map under key, returning the previous value.