pub type FxHashMap<K, V> = HashMap<K, V, BuildHasherDefault<FxHasher>>;
Expand description

Type alias for a hashmap using the fx hash algorithm.

Aliased Type§

struct FxHashMap<K, V> {
    base: HashMap<K, V, BuildHasherDefault<FxHasher>, Global>,


§base: HashMap<K, V, BuildHasherDefault<FxHasher>, Global>

Trait Implementations§


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


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

impl<K, V, R, HCX> HashStable<HCX> for HashMap<K, V, R>where K: ToStableHashKey<HCX> + Eq, V: HashStable<HCX>, R: BuildHasher,


fn hash_stable(&self, hcx: &mut HCX, hasher: &mut StableHasher)


impl<K, V> Rollback<UndoLog<K, V>> for FxHashMap<K, V>where K: Eq + Hash,


fn reverse(&mut self, undo: UndoLog<K, V>)


Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 32 bytes