pub struct BTreeMapMut<K: Ord, V> { /* private fields */ }Implementations§
Source§impl<K: Ord, V> BTreeMapMut<K, V>
impl<K: Ord, V> BTreeMapMut<K, V>
pub fn new() -> BTreeMapMut<K, V>
pub fn insert(&self, key: K, value: V) -> Option<V>
pub fn remove(&self, key: &K) -> Option<V>
pub fn contains_key(&self, key: &K) -> bool
pub fn is_empty(&self) -> bool
pub fn take(&self) -> BTreeMap<K, V>
pub fn map<R>(&self, map_f: impl FnOnce(&BTreeMap<K, V>) -> R) -> R
pub fn change(&self, change_f: impl FnOnce(&mut BTreeMap<K, V>))
pub fn map_and_change<R>( &self, change_f: impl FnOnce(&mut BTreeMap<K, V>) -> R, ) -> R
pub fn get_mut<R, F: FnOnce(&mut V) -> R>( &self, key: &K, callback: F, ) -> Option<R>
Source§impl<K: Ord, V: Clone> BTreeMapMut<K, V>
impl<K: Ord, V: Clone> BTreeMapMut<K, V>
pub fn get_and_clone(&self, key: &K) -> Option<V>
Trait Implementations§
Auto Trait Implementations§
impl<K, V> !Freeze for BTreeMapMut<K, V>
impl<K, V> !RefUnwindSafe for BTreeMapMut<K, V>
impl<K, V> Send for BTreeMapMut<K, V>
impl<K, V> !Sync for BTreeMapMut<K, V>
impl<K, V> Unpin for BTreeMapMut<K, V>
impl<K, V> UnwindSafe for BTreeMapMut<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
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