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