pub enum EntryRef<'key, 'map, K, V> {
Occupied(OccupiedEntry<'map, K, V>),
Vacant(VacantEntryRef<'key, 'map, K, V>),
}Variants§
Occupied(OccupiedEntry<'map, K, V>)
Vacant(VacantEntryRef<'key, 'map, K, V>)
Implementations§
Source§impl<'key, 'map, K, V> EntryRef<'key, 'map, K, V>where
K: Clone,
impl<'key, 'map, K, V> EntryRef<'key, 'map, K, V>where
K: Clone,
pub fn or_insert_with_key<F>(self, default: F) -> &'map mut V
pub fn or_insert_with<F>(self, default: F) -> &'map mut Vwhere
F: FnOnce() -> V,
pub fn or_insert(self, value: V) -> &'map mut V
pub fn or_insert_default(self) -> &'map mut Vwhere
V: Default,
Auto Trait Implementations§
impl<'key, 'map, K, V> !UnwindSafe for EntryRef<'key, 'map, K, V>
impl<'key, 'map, K, V> Freeze for EntryRef<'key, 'map, K, V>
impl<'key, 'map, K, V> RefUnwindSafe for EntryRef<'key, 'map, K, V>
impl<'key, 'map, K, V> Send for EntryRef<'key, 'map, K, V>
impl<'key, 'map, K, V> Sync for EntryRef<'key, 'map, K, V>
impl<'key, 'map, K, V> Unpin for EntryRef<'key, 'map, K, V>
impl<'key, 'map, K, V> UnsafeUnpin for EntryRef<'key, 'map, 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