pub struct OccupiedEntry<'a, K, A: ?Sized + UnsafeAnyExt + 'a = dyn UnsafeAny> { /* private fields */ }
Expand description
A view onto an occupied entry in a TypeMap.
Implementations§
Source§impl<'a, K: Key, A: UnsafeAnyExt + ?Sized> OccupiedEntry<'a, K, A>
impl<'a, K: Key, A: UnsafeAnyExt + ?Sized> OccupiedEntry<'a, K, A>
Sourcepub fn into_mut(self) -> &'a mut K::Value
pub fn into_mut(self) -> &'a mut K::Value
Transform the entry into a mutable reference with the same lifetime as the map.
Auto Trait Implementations§
impl<'a, K, A> Freeze for OccupiedEntry<'a, K, A>where
A: ?Sized,
impl<'a, K, A> RefUnwindSafe for OccupiedEntry<'a, K, A>
impl<'a, K, A> Send for OccupiedEntry<'a, K, A>
impl<'a, K, A> Sync for OccupiedEntry<'a, K, A>
impl<'a, K, A> Unpin for OccupiedEntry<'a, K, A>
impl<'a, K, A = dyn UnsafeAny> !UnwindSafe for OccupiedEntry<'a, K, A>
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