pub struct EntryCloned<'a, V> { /* private fields */ }Implementations§
Source§impl<'a, V> EntryCloned<'a, V>where
V: Clone,
impl<'a, V> EntryCloned<'a, V>where
V: Clone,
pub fn is_vacant(&self) -> bool
pub fn is_occupied(&self) -> bool
pub fn key(&self) -> Option<usize>
pub fn value(self) -> Option<ValueCloned<'a, V>>
pub fn or_insert(self, value: V) -> ValueCloned<'a, V>
pub fn or_insert_with<F>(self, value: F) -> ValueCloned<'a, V>where
F: FnOnce() -> V,
pub fn and_modify<F>(self, f: F) -> EntryCloned<'a, V>where
F: FnOnce(&mut ValueCloned<'a, V>),
pub fn and_set(self, value: V) -> EntryCloned<'a, V>
pub fn or_insert_entry(self, value: V) -> EntryCloned<'a, V>
pub fn remove(self) -> Option<V>
Source§impl<'a, V> EntryCloned<'a, V>
impl<'a, V> EntryCloned<'a, V>
pub fn or_default(self) -> ValueCloned<'a, V>
Auto Trait Implementations§
impl<'a, V> Freeze for EntryCloned<'a, V>
impl<'a, V> RefUnwindSafe for EntryCloned<'a, V>
impl<'a, V> !Send for EntryCloned<'a, V>
impl<'a, V> Sync for EntryCloned<'a, V>
impl<'a, V> Unpin for EntryCloned<'a, V>
impl<'a, V> UnwindSafe for EntryCloned<'a, 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