trait RangeIteratorImpl {
    type Item;

    // Required methods
    fn spec_next(&mut self) -> Option<Self::Item>;
    fn spec_nth(&mut self, n: usize) -> Option<Self::Item>;
    fn spec_advance_by(&mut self, n: usize) -> Result<(), NonZeroUsize>;
    fn spec_next_back(&mut self) -> Option<Self::Item>;
    fn spec_nth_back(&mut self, n: usize) -> Option<Self::Item>;
    fn spec_advance_back_by(&mut self, n: usize) -> Result<(), NonZeroUsize>;
}
Expand description

Specialization implementations for Range.

Required Associated Types§

Required Methods§

source

fn spec_next(&mut self) -> Option<Self::Item>

source

fn spec_nth(&mut self, n: usize) -> Option<Self::Item>

source

fn spec_advance_by(&mut self, n: usize) -> Result<(), NonZeroUsize>

source

fn spec_next_back(&mut self) -> Option<Self::Item>

source

fn spec_nth_back(&mut self, n: usize) -> Option<Self::Item>

source

fn spec_advance_back_by(&mut self, n: usize) -> Result<(), NonZeroUsize>

Implementors§