pub enum EntryMut<'a, K, V, S> {
Occupied {
key: &'a K,
value: &'a mut V,
index: usize,
},
Vacant {
key: &'a K,
map: &'a mut IndexMap<K, V, S>,
},
}Variants§
Implementations§
Source§impl<'a, K, V, S> EntryMut<'a, K, V, S>
impl<'a, K, V, S> EntryMut<'a, K, V, S>
pub fn is_occupied(&self) -> bool
pub fn or_insert_with<F>(self, value: F) -> &'a mut V
Auto Trait Implementations§
impl<'a, K, V, S> Freeze for EntryMut<'a, K, V, S>
impl<'a, K, V, S> RefUnwindSafe for EntryMut<'a, K, V, S>
impl<'a, K, V, S> Send for EntryMut<'a, K, V, S>
impl<'a, K, V, S> Sync for EntryMut<'a, K, V, S>
impl<'a, K, V, S> Unpin for EntryMut<'a, K, V, S>
impl<'a, K, V, S> !UnwindSafe for EntryMut<'a, K, V, S>
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