pub type HMap<A, B> = FxHashMap<A, B>;
Expand description
A HashMap
with rustc_hash
as hasher.
Aliased Type§
pub struct HMap<A, B> { /* private fields */ }
Trait Implementations§
Source§impl<C: Character, CS: CSName<C>, A: Clone> CSNameMap<C, CS, A> for HMap<CS, A>
impl<C: Character, CS: CSName<C>, A: Clone> CSNameMap<C, CS, A> for HMap<CS, A>
Source§fn get(&self, cs: &CS) -> Option<&A>
fn get(&self, cs: &CS) -> Option<&A>
Returns the value associated with the given control sequence name, if any.
Source§fn insert(&mut self, cs: CS, a: A) -> Option<A>
fn insert(&mut self, cs: CS, a: A) -> Option<A>
Inserts a new value for the given control sequence name, returning the old value if any.
Source§fn remove(&mut self, cs: &CS) -> Option<A>
fn remove(&mut self, cs: &CS) -> Option<A>
Removes the value associated with the given control sequence name, returning it if any.