pub enum Entry<'a, K, A: ?Sized + UnsafeAnyExt + 'a = dyn UnsafeAny> {
Occupied(OccupiedEntry<'a, K, A>),
Vacant(VacantEntry<'a, K, A>),
}
Expand description
A view onto an entry in a TypeMap.
Variants
Occupied(OccupiedEntry<'a, K, A>)
A view onto an occupied entry in a TypeMap.
Vacant(VacantEntry<'a, K, A>)
A view onto an unoccupied entry in a TypeMap.
Implementations
sourceimpl<'a, K: Key, A: ?Sized + UnsafeAnyExt + 'a = dyn UnsafeAny> Entry<'a, K, A>
impl<'a, K: Key, A: ?Sized + UnsafeAnyExt + 'a = dyn UnsafeAny> Entry<'a, K, A>
Auto Trait Implementations
impl<'a, K, A: ?Sized> RefUnwindSafe for Entry<'a, K, A> where
A: RefUnwindSafe,
K: RefUnwindSafe,
impl<'a, K, A: ?Sized> Send for Entry<'a, K, A> where
A: Send,
K: Send,
impl<'a, K, A: ?Sized> Sync for Entry<'a, K, A> where
A: Sync,
K: Sync,
impl<'a, K, A: ?Sized> Unpin for Entry<'a, K, A> where
K: Unpin,
impl<'a, K, A = dyn UnsafeAny + 'static> !UnwindSafe for Entry<'a, K, A>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more