Struct scherben_map::HashMap
source · [−]pub struct HashMap<K, V, const N: usize> { /* private fields */ }Implementations
sourceimpl<'a, K: Clone + Send + Sync, V: Clone + Send + Sync, const N: usize> HashMap<K, V, N>
impl<'a, K: Clone + Send + Sync, V: Clone + Send + Sync, const N: usize> HashMap<K, V, N>
pub fn new() -> Self
pub fn new_arc() -> Arc<Self>
pub fn with_shard(shards_size: usize) -> Self
pub fn get_owned(&'a self, key: K) -> Option<V> where
K: Hash + Eq + IKey<K>,
V: Clone,
pub fn insert(&self, key: K, value: V) where
K: Hash + Eq + IKey<K>,
pub fn remove(&self, key: K) -> Option<V> where
K: Hash + Eq + IKey<K>,
pub fn contains(&self, key: K) -> bool where
K: Hash + Eq + IKey<K>,
pub fn len(&self) -> usize
pub fn keys<'b>(&'b self) -> Vec<K> where
K: Hash + Eq + IKey<K>,
pub fn pairs<'b>(&'b self) -> Vec<(K, V)> where
K: Hash + Eq + IKey<K> + Clone,
V: Clone,
Trait Implementations
Auto Trait Implementations
impl<K, V, const N: usize> !RefUnwindSafe for HashMap<K, V, N>
impl<K, V, const N: usize> Send for HashMap<K, V, N> where
K: Send,
V: Send,
impl<K, V, const N: usize> Sync for HashMap<K, V, N> where
K: Send + Sync,
V: Send + Sync,
impl<K, V, const N: usize> Unpin for HashMap<K, V, N> where
K: Unpin,
V: Unpin,
impl<K, V, const N: usize> UnwindSafe for HashMap<K, V, N> where
K: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more