Struct core::ops::RangeExperimental [-]  [+] [src]

pub struct Range<Idx> {
    pub start: Idx,
    pub end: Idx,
}

A (half-open) range which is bounded at both ends.

Fields

start

The lower bound of the range (inclusive).

end

The upper bound of the range (exclusive).

Trait Implementations

impl<Idx: Clone + Step> Iterator<Idx> for Range<Idx>

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

fn size_hint(&self) -> (uint, Option<uint>)

impl<Idx: Clone + Step> DoubleEndedIterator<Idx> for Range<Idx>

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

impl<Idx: Clone + Step> ExactSizeIterator<Idx> for Range<Idx>

fn rposition<P>(&mut self, predicate: P) -> Option<uint> where P: FnMut(A) -> bool

fn len(&self) -> uint

Derived Implementations

impl<Idx: Copy> Copy for Range<Idx>