Skip to main content

GenericMap

Trait GenericMap 

Source
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§

Source

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

Source

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".

Implementations on Foreign Types§

Source§

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

Source§

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

Source§

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

Implementors§