pub struct OccupiedEntry<'s, K: BitString + Clone + 's, V: 's> { /* private fields */ }
Implementations§
source§impl<'s, K: BitString + Clone, V> OccupiedEntry<'s, K, V>
impl<'s, K: BitString + Clone, V> OccupiedEntry<'s, K, V>
sourcepub fn get_mut(&mut self) -> &mut V
pub fn get_mut(&mut self) -> &mut V
Gets a mutable reference to the value in the entry.
If you need a reference to the OccupiedEntry
that may outlive the destruction of the Entry value, see into_mut
.
sourcepub fn into_mut(self) -> &'s mut V
pub fn into_mut(self) -> &'s mut V
Converts the entry into a mutable reference to its value.
If you need multiple references to the OccupiedEntry
, see get_mut
.
sourcepub fn insert(&mut self, value: V) -> V
pub fn insert(&mut self, value: V) -> V
Sets the value of the entry with the OccupiedEntry
’s key,
and returns the entry’s old value.
Auto Trait Implementations§
impl<'s, K, V> Freeze for OccupiedEntry<'s, K, V>
impl<'s, K, V> RefUnwindSafe for OccupiedEntry<'s, K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<'s, K, V> !Send for OccupiedEntry<'s, K, V>
impl<'s, K, V> !Sync for OccupiedEntry<'s, K, V>
impl<'s, K, V> Unpin for OccupiedEntry<'s, K, V>
impl<'s, K, V> !UnwindSafe for OccupiedEntry<'s, 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