pub enum Entry<'a, K, V, const N: usize> {
Occupied(OccupiedEntry<'a, K, V, N>),
Vacant(VacantEntry<'a, K, V, N>),
}
Expand description
A view into an entry in the map
Variants§
Occupied(OccupiedEntry<'a, K, V, N>)
The entry corresponding to the key K
exists in the map
Vacant(VacantEntry<'a, K, V, N>)
The entry corresponding to the key K
does not exist in the map
Auto Trait Implementations§
impl<'a, K, V, const N: usize> Freeze for Entry<'a, K, V, N>where
K: Freeze,
impl<'a, K, V, const N: usize> RefUnwindSafe for Entry<'a, K, V, N>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<'a, K, V, const N: usize> Send for Entry<'a, K, V, N>
impl<'a, K, V, const N: usize> Sync for Entry<'a, K, V, N>
impl<'a, K, V, const N: usize> Unpin for Entry<'a, K, V, N>where
K: Unpin,
impl<'a, K, V, const N: usize> !UnwindSafe for Entry<'a, K, V, N>
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