pub trait LookupByKey<K, V> {
// Required method
fn get(&self, key: &K) -> Option<&V>;
}Expand description
A trait for looking up values by key that doesn’t need to implement Idx.
pub trait LookupByKey<K, V> {
// Required method
fn get(&self, key: &K) -> Option<&V>;
}A trait for looking up values by key that doesn’t need to implement Idx.