pub trait LayerIterator<K, V>: Send + Sync {
// Required methods
fn advance<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get(&self) -> Option<ItemRef<'_, K, V>>;
// Provided method
fn filter<'async_trait, P>(
self,
predicate: P,
) -> Pin<Box<dyn Future<Output = Result<FilterLayerIterator<Self, P, K, V>, Error>> + Send + 'async_trait>>
where P: for<'b> Fn(ItemRef<'b, K, V>) -> bool + Send + Sync + 'async_trait,
Self: Sized + 'async_trait,
K: Send + Sync,
V: Send + Sync { ... }
}Expand description
Something that implements LayerIterator is returned by the seek function.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".