pub trait Insert<K, V = ()>: Collection {
// Required method
fn insert(&mut self, key: K, value: V) -> Option<V>;
}Required Methods§
Implementors§
impl<K> Insert<K> for BTreeSet<K>where
K: Ord,
impl<K, Gen, S> Insert<K> for GenSetOf<K, Gen, S>
impl<K, S> Insert<K> for HashSet<K, S>
Available on crate feature
std only.impl<K, V> Insert<K, V> for BTreeMap<K, V>where
K: Ord,
impl<K, V, Gen, S> Insert<K, V> for GenMapOf<K, V, Gen, S>
impl<K, V, S> Insert<K, V> for HashMap<K, V, S>
Available on crate feature
std only.