pub struct Entry<'a, K, V>where
K: 'a,
V: StableDeref + DerefMut + 'a,{ /* private fields */ }Implementations§
Source§impl<'a, K, V> Entry<'a, K, V>
impl<'a, K, V> Entry<'a, K, V>
Sourcepub fn value_count(&self) -> usize
pub fn value_count(&self) -> usize
return how many values are associated with this entries key
Sourcepub fn values(&self) -> EntryValues<'_, V::Target> ⓘ
pub fn values(&self) -> EntryValues<'_, V::Target> ⓘ
Iterate over all values already inserted for the key.
Sourcepub fn values_mut(&mut self) -> EntryValuesMut<'_, V::Target> ⓘ
pub fn values_mut(&mut self) -> EntryValuesMut<'_, V::Target> ⓘ
Iterate over mutable references of values already inserted for the key.
Sourcepub fn add(self, val: V) -> EntryValuesMut<'a, V::Target> ⓘ
pub fn add(self, val: V) -> EntryValuesMut<'a, V::Target> ⓘ
Add a value to the values associated with the given keys.
Trait Implementations§
Auto Trait Implementations§
impl<'a, K, V> Freeze for Entry<'a, K, V>where
K: Freeze,
impl<'a, K, V> RefUnwindSafe for Entry<'a, K, V>
impl<'a, K, V> !Send for Entry<'a, K, V>
impl<'a, K, V> !Sync for Entry<'a, K, V>
impl<'a, K, V> Unpin for Entry<'a, K, V>where
K: Unpin,
impl<'a, K, V> !UnwindSafe for Entry<'a, K, V>
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