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> 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> where
K: Send,
V: Send,
impl<'a, K, V, const N: usize> Sync for Entry<'a, K, V, N> where
K: Sync,
V: Sync,
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more