Trait mm0_util::HashMapExt[][src]

pub trait HashMapExt<K, V> {
    fn try_insert_ext(
        &mut self,
        k: K,
        v: V
    ) -> Option<(V, OccupiedEntry<'_, K, V>)>; }
Expand description

Extension trait for HashMap<K, V>.

Required methods

Like insert, but if the insertion fails then it returns the value that it attempted to insert, as well as an OccupiedEntry containing the other value that was found.

Implementations on Foreign Types

Implementors