pub enum Entry<'a, 'k, V> {
Occupied(OccupiedEntry<'a, V>),
Vacant(VacantEntry<'a, 'k, V>),
}
Variants§
Occupied(OccupiedEntry<'a, V>)
Vacant(VacantEntry<'a, 'k, V>)
Auto Trait Implementations§
impl<'a, 'k, V> Freeze for Entry<'a, 'k, V>
impl<'a, 'k, V> RefUnwindSafe for Entry<'a, 'k, V>where
V: RefUnwindSafe,
impl<'a, 'k, V> Send for Entry<'a, 'k, V>where
V: Send,
impl<'a, 'k, V> Sync for Entry<'a, 'k, V>where
V: Sync,
impl<'a, 'k, V> Unpin for Entry<'a, 'k, V>
impl<'a, 'k, V> !UnwindSafe for Entry<'a, 'k, V>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more