aztec-nr - std::collections::umap

Struct UHashMap

pub struct UHashMap<K, V, B>
{ /* private fields */ }

Implementations

impl<B, K, V> UHashMap<K, V, B>

pub fn with_hasher(_build_hasher: B) -> Self
where B: BuildHasher
pub fn with_hasher_and_capacity(_build_hasher: B, capacity: u32) -> Self
where B: BuildHasher
pub fn clear(&mut self) pub fn contains_key(self, key: K) -> bool
where K: Hash, K: Eq, B: BuildHasher
pub fn is_empty(self) -> bool pub fn entries(self) -> [(K, V)] pub fn keys(self) -> [K] pub fn values(self) -> [V] pub unconstrained fn iter_mut(&mut self, f: fn(K, V) -> (K, V))
where K: Eq, K: Hash, B: BuildHasher
pub unconstrained fn iter_keys_mut(&mut self, f: fn(K) -> K)
where K: Eq, K: Hash, B: BuildHasher
pub fn iter_values_mut(&mut self, f: fn(V) -> V) pub fn retain(&mut self, f: fn(K, V) -> bool) pub fn len(self) -> u32 pub fn capacity(self) -> u32 pub unconstrained fn get(self, key: K) -> Option<V>
where K: Eq, K: Hash, B: BuildHasher
pub unconstrained fn insert(&mut self, key: K, value: V)
where K: Eq, K: Hash, B: BuildHasher
pub unconstrained fn remove(&mut self, key: K)
where K: Eq, K: Hash, B: BuildHasher

Trait implementations

impl<B, K, V> Default for UHashMap<K, V, B>
where B: BuildHasher, B: Default

pub fn default() -> Self

impl<B, K, V> Eq for UHashMap<K, V, B>
where K: Eq, K: Hash, V: Eq, B: BuildHasher

pub fn eq(self, other: Self) -> bool