Trait itertools::iter_index::IteratorIndex
source · pub trait IteratorIndex<I>: Sealedwhere
I: Iterator,{
type Output: Iterator<Item = I::Item>;
// Required method
fn index(self, from: I) -> Self::Output;
}
Expand description
Used by Itertools::get
to know which iterator
to turn different ranges into.
Required Associated Types§
Required Methods§
sourcefn index(self, from: I) -> Self::Output
fn index(self, from: I) -> Self::Output
Returns an adapted iterator for the current index.
Prefer calling Itertools::get
instead
of calling this directly.