Enum associated_list::Entry
source · pub enum Entry<'a, K, V, A: Allocator = ()> {
Occupied(OccupiedEntry<'a, K, V, A>),
Vacant(VacantEntry<'a, K, V, A>),
}Expand description
A view into an AssocList for a single element.
It can be either present or missing.
Variants§
Occupied(OccupiedEntry<'a, K, V, A>)
Vacant(VacantEntry<'a, K, V, A>)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a, K, V, A> RefUnwindSafe for Entry<'a, K, V, A>
impl<'a, K, V, A> Send for Entry<'a, K, V, A>
impl<'a, K, V, A> Sync for Entry<'a, K, V, A>
impl<'a, K, V, A> Unpin for Entry<'a, K, V, A>
impl<'a, K, V, A = ()> !UnwindSafe for Entry<'a, K, V, A>
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