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>)>; }
Extension trait for HashMap
<K, V>
.
Required methods
fn try_insert_ext(&mut self, k: K, v: V) -> Option<(V, OccupiedEntry<'_, K, V>)>
[src]
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.