pub trait GenericMap<K, V> {
// Required methods
fn remove(&mut self, key: &K) -> Option<V>;
fn insert(&mut self, key: K, value: V) -> Option<V>;
}Expand description
A trait implemented by BTreeMap and im_rc::OrdMap.
Required Methods§
fn remove(&mut self, key: &K) -> Option<V>
fn insert(&mut self, key: K, value: V) -> Option<V>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".