Struct std::ops::RangeStable [-] [+] [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> Debug for Range<Idx> where Idx: Debug

fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>

impl<A> Iterator for Range<A> where A: Int

type Item = A

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

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

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

impl ExactSizeIterator for Range<usize>

fn len(&self) -> usize

impl ExactSizeIterator for Range<u8>

fn len(&self) -> usize

impl ExactSizeIterator for Range<u16>

fn len(&self) -> usize

impl ExactSizeIterator for Range<u32>

fn len(&self) -> usize

impl ExactSizeIterator for Range<isize>

fn len(&self) -> usize

impl ExactSizeIterator for Range<i8>

fn len(&self) -> usize

impl ExactSizeIterator for Range<i16>

fn len(&self) -> usize

impl ExactSizeIterator for Range<i32>

fn len(&self) -> usize

impl<A> DoubleEndedIterator for Range<A> where A: Int

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

Derived Implementations

impl<Idx> Eq for Range<Idx> where Idx: Eq

fn assert_receiver_is_total_eq(&self)

impl<Idx> PartialEq<Range<Idx>> for Range<Idx> where Idx: PartialEq<Idx>

fn eq(&self, __arg_0: &Range<Idx>) -> bool

fn ne(&self, __arg_0: &Range<Idx>) -> bool

fn ne(&self, &Range<Idx>) -> bool

impl<Idx> Clone for Range<Idx> where Idx: Clone

fn clone(&self) -> Range<Idx>

fn clone_from(&mut self, &Range<Idx>)