Struct std::iter::RangeStep

pub struct RangeStep<A> {
    priv state: A,
    priv stop: A,
    priv step: A,
    priv rev: bool,
}

An iterator over the range [start, stop) by step. It handles overflow by stopping.

Trait Implementations

impl<A: Clone> Clone for RangeStep<A>

fn clone(&self) -> RangeStep<A>

Returns a copy of the value. The contents of owned pointers are copied to maintain uniqueness, while the contents of managed pointers are not copied.

impl<A: DeepClone> DeepClone for RangeStep<A>

fn deep_clone(&self) -> RangeStep<A>

Return a deep copy of the value. Unlike Clone, the contents of shared pointer types are copied.

impl<A: CheckedAdd + Ord + Clone> Iterator<A> for RangeStep<A>

fn next(&mut self) -> Option<A>

Advance the iterator and return the next value. Return None when the end is reached.