Trait miden_processor::utils::collections::KvMap
pub trait KvMap<K, V>: Extend<(K, V)> + FromIterator<(K, V)> + IntoIterator<Item = (K, V)>where
K: Ord + Clone,
V: Clone,{
// Required methods
fn get(&self, key: &K) -> Option<&V>;
fn contains_key(&self, key: &K) -> bool;
fn len(&self) -> usize;
fn insert(&mut self, key: K, value: V) -> Option<V>;
fn iter(&self) -> Box<dyn Iterator<Item = (&K, &V)> + '_, Global>;
// Provided method
fn is_empty(&self) -> bool { ... }
}Expand description
A trait that defines the interface for a key-value map.