Trait rustc_ap_rustc_data_structures::sync::HashMapExt[][src]

pub trait HashMapExt<K, V> {
    fn insert_same(&mut self, key: K, value: V);
}

Required methods

fn insert_same(&mut self, key: K, value: V)[src]

Same as HashMap::insert, but it may panic if there’s already an entry for key with a value not equal to value

Implementations on Foreign Types

impl<K: Eq + Hash, V: Eq, S: BuildHasher> HashMapExt<K, V> for HashMap<K, V, S>[src]

fn insert_same(&mut self, key: K, value: V)[src]

Implementors