Struct typedmap::entry::OccupiedEntry
source · pub struct OccupiedEntry<'a, K, KB, VB, Marker>where
K: 'static + TypedMapKey<Marker>,
KB: 'static + Bounds + HasBounds<K>,
VB: 'static + Bounds + HasBounds<K::Value>,{ /* private fields */ }
Implementations§
source§impl<'a, K, KB, VB, Marker> OccupiedEntry<'a, K, KB, VB, Marker>
impl<'a, K, KB, VB, Marker> OccupiedEntry<'a, K, KB, VB, Marker>
pub fn into_mut(self) -> &'a mut K::Value
pub fn key(&self) -> &K
pub fn remove_entry(self) -> (K, K::Value)
pub fn get(&self) -> &K::Value
pub fn get_mut(&mut self) -> &mut K::Value
pub fn insert(&mut self, value: K::Value) -> K::Value
pub fn remove(self) -> K::Value
Auto Trait Implementations§
impl<'a, K, KB, VB, Marker> Freeze for OccupiedEntry<'a, K, KB, VB, Marker>
impl<'a, K, KB, VB, Marker> RefUnwindSafe for OccupiedEntry<'a, K, KB, VB, Marker>where
K: RefUnwindSafe,
Marker: RefUnwindSafe,
<VB as Bounds>::Container: RefUnwindSafe,
<KB as Bounds>::KeyContainer: RefUnwindSafe,
impl<'a, K, KB, VB, Marker> Send for OccupiedEntry<'a, K, KB, VB, Marker>
impl<'a, K, KB, VB, Marker> Sync for OccupiedEntry<'a, K, KB, VB, Marker>
impl<'a, K, KB, VB, Marker> Unpin for OccupiedEntry<'a, K, KB, VB, Marker>
impl<'a, K, KB, VB, Marker> !UnwindSafe for OccupiedEntry<'a, K, KB, VB, Marker>
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