Struct ordermap::OccupiedEntry
source · pub struct OccupiedEntry<'a, K: 'a, V: 'a, S: 'a = RandomState> {
pub(crate) map: &'a mut OrderMap<K, V, S>,
pub(crate) key: K,
pub(crate) probe: usize,
pub(crate) index: usize,
}
Fields§
§map: &'a mut OrderMap<K, V, S>
§key: K
§probe: usize
§index: usize
Implementations§
source§impl<'a, K, V, S> OccupiedEntry<'a, K, V, S>
impl<'a, K, V, S> OccupiedEntry<'a, K, V, S>
pub fn key(&self) -> &K
pub fn get(&self) -> &V
pub fn get_mut(&mut self) -> &mut V
pub fn into_mut(self) -> &'a mut V
pub fn insert(self, value: V) -> V
pub fn remove(self) -> V
sourcepub fn remove_entry(self) -> (K, V)
pub fn remove_entry(self) -> (K, V)
Remove and return the key, value pair stored in the map for this entry
Auto Trait Implementations§
impl<'a, K, V, S> Freeze for OccupiedEntry<'a, K, V, S>where
K: Freeze,
impl<'a, K, V, S> RefUnwindSafe for OccupiedEntry<'a, K, V, S>
impl<'a, K, V, S> Send for OccupiedEntry<'a, K, V, S>
impl<'a, K, V, S> Sync for OccupiedEntry<'a, K, V, S>
impl<'a, K, V, S> Unpin for OccupiedEntry<'a, K, V, S>where
K: Unpin,
impl<'a, K, V, S = RandomState> !UnwindSafe for OccupiedEntry<'a, K, V, S>
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