Type Alias BoxedLayerIterator

Source
pub type BoxedLayerIterator<'iter, K, V> = Box<dyn LayerIterator<K, V> + 'iter>;

Aliased Type§

struct BoxedLayerIterator<'iter, K, V>(/* private fields */);

Trait Implementations§

Source§

impl<'iter, K, V> LayerIterator<K, V> for BoxedLayerIterator<'iter, K, V>

Source§

fn advance<'a, 'b>( &'a mut self, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'b>>
where Self: 'b, 'a: 'b,

Advances the iterator.
Source§

fn get(&self) -> Option<ItemRef<'_, K, V>>

Returns the current item. This will be None if called when the iterator is first crated i.e. before either seek or advance has been called, and None if the iterator has reached the end of the layer.
Source§

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,

Creates an iterator that only yields items from the underlying iterator for which predicate returns true.