pub enum Entry<'a, V: 'a> {
Occupied(OccupiedEntry<'a, V>),
Vacant(VacantEntry<'a, V>),
}
Expand description
A view into a single entry in a IntMap
, which may either be vacant or occupied.
The entry can be constructed by calling IntMap::entry
with a key. It allows inspection
and in-place manipulation of its value without repeated lookups.
Variants
Occupied(OccupiedEntry<'a, V>)
The entry is occupied.
Vacant(VacantEntry<'a, V>)
The entry is vacant.
Auto Trait Implementations
impl<'a, V> RefUnwindSafe for Entry<'a, V> where
V: RefUnwindSafe,
impl<'a, V> Send for Entry<'a, V> where
V: Send,
impl<'a, V> Sync for Entry<'a, V> where
V: Sync,
impl<'a, V> Unpin for Entry<'a, V>
impl<'a, V> !UnwindSafe for Entry<'a, V>
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