Struct nekolib_doc::naive::assoc_list::AssocList
source · pub struct AssocList<K, V>(/* private fields */);
Implementations§
source§impl<K, V> AssocList<K, V>where
K: Eq,
impl<K, V> AssocList<K, V>where
K: Eq,
pub fn new() -> AssocList<K, V>
pub fn is_empty(&self) -> bool
pub fn len(&self) -> usize
pub fn get<Q>(&self, key: Q) -> Option<&V>
pub fn insert(&mut self, key: K, value: V) -> Option<V>
pub fn remove<Q>(&mut self, key: Q) -> Option<V>
pub fn entry(&mut self, key: K) -> Entry<'_, K, V>
Trait Implementations§
Auto Trait Implementations§
impl<K, V> Freeze for AssocList<K, V>
impl<K, V> RefUnwindSafe for AssocList<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for AssocList<K, V>
impl<K, V> Sync for AssocList<K, V>
impl<K, V> Unpin for AssocList<K, V>
impl<K, V> UnwindSafe for AssocList<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