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.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".