pub trait RawStore<K, V> {
// Required method
fn get(&self, key: &K) -> Option<&V>;
// Provided method
fn contains_key(&self, key: &K) -> bool { ... }
}Expand description
The RawStore trait is used to define an interface for key-value stores like hash-maps,
dictionaries, and similar data structures.
Required Methods§
Provided Methods§
Sourcefn contains_key(&self, key: &K) -> bool
fn contains_key(&self, key: &K) -> bool
returns true if the key is associated with a value in the store