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 >::OutputReturns an adapted iterator for the current index.
Prefer calling
Itertools::getinstead of calling this directly.
Implementors
impl<I> IteratorIndex for RangeFullimpl<I> IteratorIndex for RangeFrom<usize>impl<I> IteratorIndex for RangeToInclusive<usize>impl<I> IteratorIndex for RangeTo<usize>impl<I> IteratorIndex for RangeInclusive<usize>impl<I> IteratorIndex for Range<usize>