Trait MutableMap

Source
pub trait MutableMap<K, V> {
    type UnderlyingMap: GenericMap<K, V>;

    // Required method
    fn make_mut(&mut self) -> &mut Self::UnderlyingMap;
}
Expand description

A trait implemented by BTreeMap, im_rc::OrdMap and Rc<BTreeMap>.

You frequently want to clone incrementals a lot. Making it so

Required Associated Types§

Required Methods§

Source

fn make_mut(&mut self) -> &mut Self::UnderlyingMap

For Rc, this is BTreeMap.

Implementations on Foreign Types§

Source§

impl<K: Ord + Clone, V: Clone> MutableMap<K, V> for Rc<BTreeMap<K, V>>

Source§

type UnderlyingMap = BTreeMap<K, V>

Source§

fn make_mut(&mut self) -> &mut Self::UnderlyingMap

Source§

impl<K: Ord, V> MutableMap<K, V> for BTreeMap<K, V>

Source§

type UnderlyingMap = BTreeMap<K, V>

Source§

fn make_mut(&mut self) -> &mut Self::UnderlyingMap

Implementors§