pub trait SearchableStoreRead: OrderedStoreRead {
// Required method
fn filter(
&self,
pred: impl FnMut(&Self::Key, &Self::Value) -> bool,
) -> Vec<(Self::Key, Self::Value)>;
// Provided method
fn find(
&self,
pred: impl FnMut(&Self::Key, &Self::Value) -> bool,
) -> Option<(Self::Key, Self::Value)> { ... }
}Expand description
Extension to a OrderedStoreRead, that allows looking through the store to look for specific
entries,
Required Methods§
Provided Methods§
fn find( &self, pred: impl FnMut(&Self::Key, &Self::Value) -> bool, ) -> Option<(Self::Key, Self::Value)>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".