Trait IteratorIndex

trait IteratorIndex<I>: private_iter_index::Sealed
where
    I: Iterator

Used by Itertools::get to know which iterator to turn different ranges into.

Associated Types

type Output: TraitBound { trait_: Path { path: "Iterator", id: Id(151), args: Some(AngleBracketed { args: [], constraints: [AssocItemConstraint { name: "Item", args: None, binding: Equality(Type(QualifiedPath { name: "Item", args: None, self_type: Generic("I"), trait_: Some(Path { path: "", id: Id(151), args: None }) })) }] }) }, generic_params: [], modifier: None }

The type returned for this type of index.

Required Methods

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

Returns an adapted iterator for the current index.

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

Implementors