Struct collections::slice::IterStable [-]  [+] [src]

pub struct Iter<'a, T: 'a> {
    // some fields omitted
}

Immutable slice iterator

Methods

impl<'a, T> Iter<'a, T>

fn as_slice(&self) -> &'a [T]

View the underlying data as a subslice of the original data.

This has the same lifetime as the original slice, and so the iterator can continue to be used while this exists.

Trait Implementations

impl<'a, T> Slice<uint, [T]> for Iter<'a, T>

fn as_slice_(&self) -> &[T]

fn slice_from_or_fail(&'b self, from: &uint) -> &'b [T]

fn slice_to_or_fail(&'b self, to: &uint) -> &'b [T]

fn slice_or_fail(&'b self, from: &uint, to: &uint) -> &'b [T]

impl<'a, T> Copy for Iter<'a, T>

impl<'a, T> Iterator<&'a T> for Iter<'a, T>

fn next(&mut self) -> Option<&'a T>

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

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

impl<'a, T> DoubleEndedIterator<&'a T> for Iter<'a, T>

fn next_back(&mut self) -> Option<&'a T>

impl<'a, T> ExactSizeIterator<&'a T> for Iter<'a, T>

fn rposition<P>(&mut self, P) -> Option<uint>

fn len(&self) -> uint

impl<'a, T> Clone for Iter<'a, T>

fn clone(&self) -> Iter<'a, T>

fn clone_from(&mut self, &Iter<'a, T>)

impl<'a, T> RandomAccessIterator<&'a T> for Iter<'a, T>

fn indexable(&self) -> uint

fn idx(&mut self, index: uint) -> Option<&'a T>