naga

Type Alias FastHashMap

source
pub type FastHashMap<K, T> = HashMap<K, T, BuildHasherDefault<FxHasher>>;
Expand description

Hash map that is faster but not resilient to DoS attacks. (Similar to rustc_hash::FxHashMap but using hashbrown::HashMap instead of std::collections::HashMap.) To construct a new instance: FastHashMap::default()

Aliased Type§

struct FastHashMap<K, T> { /* private fields */ }

Trait Implementations§

source§

impl<T> LookupHelper for FastHashMap<Word, T>

source§

type Target = T

source§

fn lookup(&self, key: Word) -> Result<&T, Error>