Struct std::iter::RangeExperimental
[-]
[+]
[src]
pub struct Range<A> {
// some fields omitted
}An iterator over the range [start, stop)
Trait Implementations
impl<A: Int + ToPrimitive> Iterator<A> for Range<A>
fn next(&mut self) -> Option<A>
fn size_hint(&self) -> (uint, Option<uint>)
fn size_hint(&self) -> (uint, Option<uint>)
fn chain<U: Iterator<A>>(self, U) -> Chain<Range<A>, U>
fn zip<B, U: Iterator<B>>(self, U) -> Zip<Range<A>, U>
fn map<B>(self, |A| -> B) -> Map<'r, A, B, Range<A>>
fn filter(self, |&A| -> bool) -> Filter<'r, A, Range<A>>
fn filter_map<B>(self, |A| -> Option<B>) -> FilterMap<'r, A, B, Range<A>>
fn enumerate(self) -> Enumerate<Range<A>>
fn peekable(self) -> Peekable<A, Range<A>>
fn skip_while(self, |&A| -> bool) -> SkipWhile<'r, A, Range<A>>
fn take_while(self, |&A| -> bool) -> TakeWhile<'r, A, Range<A>>
fn skip(self, uint) -> Skip<Range<A>>
fn take(self, uint) -> Take<Range<A>>
fn scan<St, B>(self, St, |&mut St, A| -> Option<B>) -> Scan<'r, A, B, Range<A>, St>
fn flat_map<B, U: Iterator<B>>(self, |A| -> U) -> FlatMap<'r, A, Range<A>, U>
fn fuse(self) -> Fuse<Range<A>>
fn inspect(self, |&A|) -> Inspect<'r, A, Range<A>>
fn by_ref(&'r mut self) -> ByRef<'r, Range<A>>
fn collect<B: FromIterator<A>>(&mut self) -> B
fn nth(&mut self, uint) -> Option<A>
fn last(&mut self) -> Option<A>
fn fold<B>(&mut self, B, |B, A| -> B) -> B
fn count(&mut self) -> uint
fn all(&mut self, |A| -> bool) -> bool
fn any(&mut self, |A| -> bool) -> bool
fn find(&mut self, |&A| -> bool) -> Option<A>
fn position(&mut self, |A| -> bool) -> Option<uint>
fn max_by<B: Ord>(&mut self, |&A| -> B) -> Option<A>
fn min_by<B: Ord>(&mut self, |&A| -> B) -> Option<A>
impl<A: Int + ToPrimitive> DoubleEndedIterator<A> for Range<A>
Int is required to ensure the range will be the same regardless of
the direction it is consumed.