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§
sourcefn with_context<Ctx>(self, context: Ctx) -> WithCtx<Self, Ctx> ⓘwhere
Self: Sized,
fn with_context<Ctx>(self, context: Ctx) -> WithCtx<Self, Ctx> ⓘwhere Self: Sized,
Add read-only context to the iterator.