rustmax::itertools::traits

Trait IteratorIndex

Source
pub trait IteratorIndex<I>: Sealed
where I: Iterator,
{ type Output: Iterator<Item = <I as Iterator>::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§

Source

type Output: Iterator<Item = <I as Iterator>::Item>

The type returned for this type of index.

Required Methods§

Source

fn index(self, from: I) -> Self::Output

Returns an adapted iterator for the current index.

Prefer calling [Itertools::get] instead of calling this directly.

Implementors§