Struct std::iter::Range

pub struct Range<A> {
    priv state: A,
    priv stop: A,
    priv one: A,
}

An iterator over the range [start, stop)

Trait Implementations

impl<A: Clone> Clone for Range<A>

fn clone(&self) -> Range<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 Range<A>

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

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

impl<A: Add<A, A> + Ord + Clone> Iterator<A> for Range<A>

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

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

impl<A: Integer + Ord + Clone> DoubleEndedIterator<A> for Range<A>

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

Yield an element from the end of the range, returning None if the range is empty.