Trait IteratorIndex
pub trait IteratorIndex<I>: Sealed
where
I: Iterator,
Used by Itertools::get to know which iterator
to turn different ranges into.
Associated Types
type Output: Iterator<Item = I::Item>;The type returned for this type of index.
Required Methods
fn index(self, from: I) -> Self::OutputReturns an adapted iterator for the current index.
Prefer calling
Itertools::getinstead of calling this directly.
Implementors
impl<I> IteratorIndex<I> for Range<usize> where I: Iterator,impl<I> IteratorIndex<I> for RangeFrom<usize> where I: Iterator,impl<I> IteratorIndex<I> for RangeFull where I: Iterator,impl<I> IteratorIndex<I> for RangeInclusive<usize> where I: Iterator,impl<I> IteratorIndex<I> for RangeTo<usize> where I: Iterator,impl<I> IteratorIndex<I> for RangeToInclusive<usize> where I: Iterator,