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
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.