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§
fn insert(&mut self, key: K, value: V) -> Option<V>
fn remove(&mut self, key: &K) -> Option<V>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".