pub trait SearchableStoreRead<K: Ord, V>: OrderedStoreRead<K, V> {
// Required method
fn filter(&self, pred: impl FnMut(&K, &V) -> bool) -> Vec<(K, V)>;
// Provided method
fn find(&self, pred: impl FnMut(&K, &V) -> bool) -> Option<(K, V)> { ... }
}Expand description
Extension to a OrderedStoreRead, that allows looking through the store to look for specific
entries,
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.