pub struct OccupiedEntry<'a, K, V, const N: usize> { /* private fields */ }
Expand description
An occupied entry which can be manipulated
Implementations§
Source§impl<'a, K, V, const N: usize> OccupiedEntry<'a, K, V, N>
impl<'a, K, V, const N: usize> OccupiedEntry<'a, K, V, N>
Sourcepub fn remove_entry(self) -> (K, V)
pub fn remove_entry(self) -> (K, V)
Removes this entry from the map and yields its corresponding key and value
Sourcepub fn get_mut(&mut self) -> &mut V
pub fn get_mut(&mut self) -> &mut V
Gets a mutable reference to the value associated with this entry
Sourcepub fn into_mut(self) -> &'a mut V
pub fn into_mut(self) -> &'a mut V
Consumes this entry and yields a reference to the underlying value
Auto Trait Implementations§
impl<'a, K, V, const N: usize> Freeze for OccupiedEntry<'a, K, V, N>where
K: Freeze,
impl<'a, K, V, const N: usize> RefUnwindSafe for OccupiedEntry<'a, K, V, N>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<'a, K, V, const N: usize> Send for OccupiedEntry<'a, K, V, N>
impl<'a, K, V, const N: usize> Sync for OccupiedEntry<'a, K, V, N>
impl<'a, K, V, const N: usize> Unpin for OccupiedEntry<'a, K, V, N>where
K: Unpin,
impl<'a, K, V, const N: usize> !UnwindSafe for OccupiedEntry<'a, K, V, N>
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