rustc_data_structures::sync

Trait HashMapExt

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

Required Methods§

Source

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

Implementations on Foreign Types§

Source§

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

Source§

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

Implementors§