pub trait Dictionary<K, V>: Map<K, V> + DynamicContainerwhere
K: Eq,{
// Required method
fn remove<Q>(&mut self, k: &Q) -> Option<V>
where K: Borrow<Q>,
Q: Eq + ?Sized;
// Provided method
fn contains<Q>(&self, key: &Q) -> bool
where K: Borrow<Q>,
Q: Eq + ?Sized { ... }
}Expand description
Key-value map that can dynamically change size.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.