Skip to main content

ContextualIterator

Trait ContextualIterator 

Source
pub trait ContextualIterator<C> {
    type Item;

    // Required method
    fn next_with(&mut self, context: &mut C) -> Option<Self::Item>;
}

Required Associated Types§

Required Methods§

Source

fn next_with(&mut self, context: &mut C) -> Option<Self::Item>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<'a, 'c, R: Seek + Read, C, T: EncodeSized + DecodeFromHeap<C>> ContextualIterator<C> for Iter<'a, 'c, R, T>

Source§

type Item = Result<Ref<'c, T, UnboundRef<T>>, Error>

Source§

impl<'a, 'c, R: Seek + Read, C, T: EncodeSized + DecodeFromHeap<C>> ContextualIterator<C> for Pages<'a, 'c, R, T>

Source§

type Item = Result<Ref<'c, T>, Error>

Source§

impl<'a, C: 'a, T, U: UnboundContextualIterator<C>> ContextualIterator<C> for Ref<'a, T, U>
where <U as Unbound>::Bound<'a>: ContextualIterator<C, Item = <U::UnboundItem as Unbound>::Bound<'a>>,