Trait IntoContextIterator

Source
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 I
where I: Iterator,