pub trait HashMapExt<K, V> {
fn insert_same(&mut self, key: K, value: V);
}
Available on crate feature
__common
only.Required Methods
sourcefn insert_same(&mut self, key: K, value: V)
fn insert_same(&mut self, key: K, value: V)
Same as HashMap::insert, but it may panic if there’s already an
entry for key
with a value not equal to value