Type Alias rustc_data_structures::fx::FxHashMap
source · 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>,
}
Fields§
§base: HashMap<K, V, BuildHasherDefault<FxHasher>, Global>
Trait Implementations§
source§impl<K: Eq + Hash, V: Eq, S: BuildHasher> HashMapExt<K, V> for HashMap<K, V, S>
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)
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
source§impl<K, V, R, HCX> HashStable<HCX> for HashMap<K, V, R>where
K: ToStableHashKey<HCX> + Eq,
V: HashStable<HCX>,
R: BuildHasher,
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)
Layout§
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