Skip to main content

MutableMap

Trait MutableMap 

Source
trait MutableMap<K, V> {
    // Required methods
    fn insert(&mut self, key: K, value: V) -> Option<V>;
    fn remove(&mut self, key: &K) -> Option<V>;
}
Expand description

Trait abstracting over map operations needed by apply_inverted_lookup and apply_with_update. Both BTreeMap and imbl::OrdMap implement this.

Required Methods§

Source

fn insert(&mut self, key: K, value: V) -> Option<V>

Source

fn remove(&mut self, key: &K) -> Option<V>

Implementations on Foreign Types§

Source§

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

Source§

fn insert(&mut self, key: K, value: V) -> Option<V>

Source§

fn remove(&mut self, key: &K) -> Option<V>

Source§

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

Source§

fn insert(&mut self, key: K, value: V) -> Option<V>

Source§

fn remove(&mut self, key: &K) -> Option<V>

Implementors§