pub trait IntoContextIterator: Iterator {
    // Provided method
    fn with_context<Ctx>(self, context: Ctx) -> WithCtx<Self, Ctx> 
       where Self: Sized { ... }
}
Expand description

Extended iterator trait to allow adding context data.

This trait is automatically implemented for all iterators.

Provided Methods§

source

fn with_context<Ctx>(self, context: Ctx) -> WithCtx<Self, Ctx> where Self: Sized,

Add read-only context to the iterator.

Implementors§

source§

impl<I> IntoContextIterator for Iwhere I: Iterator,