pub struct BasicRegistry<K, V> { /* private fields */ }Implementations§
Source§impl<K: Hash + Eq, V> BasicRegistry<K, V>
impl<K: Hash + Eq, V> BasicRegistry<K, V>
pub fn new() -> Self
pub fn get(&self, key: &K) -> Option<&V>
pub fn insert(&mut self, key: K, value: V) -> Option<V>
pub fn remove(&mut self, key: &K) -> Option<V>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn iter(&self) -> impl Iterator<Item = (&K, &V)>
Trait Implementations§
Auto Trait Implementations§
impl<K, V> Freeze for BasicRegistry<K, V>
impl<K, V> RefUnwindSafe for BasicRegistry<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for BasicRegistry<K, V>
impl<K, V> Sync for BasicRegistry<K, V>
impl<K, V> Unpin for BasicRegistry<K, V>
impl<K, V> UnsafeUnpin for BasicRegistry<K, V>
impl<K, V> UnwindSafe for BasicRegistry<K, V>where
K: UnwindSafe,
V: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more