pub struct OccupiedEntry<'a, K1, K2, V> { /* private fields */ }Expand description
A view into an occupied entry of a DoubleMap.
Implementations§
Source§impl<'a, K1, K2, V> OccupiedEntry<'a, K1, K2, V>
impl<'a, K1, K2, V> OccupiedEntry<'a, K1, K2, V>
Sourcepub fn keys(&self) -> (&K1, &K2)
pub fn keys(&self) -> (&K1, &K2)
Returns a reference to the keys of type K1 and K2 of the entry.
Sourcepub fn insert(&mut self, value: V) -> V
pub fn insert(&mut self, value: V) -> V
Replaces the value in the entry and returns the old value.
Sourcepub fn remove_entry(self) -> (K1, K2, V)
pub fn remove_entry(self) -> (K1, K2, V)
Removes the entry from the map and returns its full (K1, K2, V) triple.
Auto Trait Implementations§
impl<'a, K1, K2, V> !UnwindSafe for OccupiedEntry<'a, K1, K2, V>
impl<'a, K1, K2, V> Freeze for OccupiedEntry<'a, K1, K2, V>
impl<'a, K1, K2, V> RefUnwindSafe for OccupiedEntry<'a, K1, K2, V>
impl<'a, K1, K2, V> Send for OccupiedEntry<'a, K1, K2, V>
impl<'a, K1, K2, V> Sync for OccupiedEntry<'a, K1, K2, V>
impl<'a, K1, K2, V> Unpin for OccupiedEntry<'a, K1, K2, V>
impl<'a, K1, K2, V> UnsafeUnpin for OccupiedEntry<'a, K1, K2, 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