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> Index<Range<usize>> for Iter<'a, T>

fn index(&self, index: &Range<usize>) -> &[T]

type Output

impl<'a, T> Index<RangeTo<usize>> for Iter<'a, T>

fn index(&self, index: &RangeTo<usize>) -> &[T]

type Output

impl<'a, T> Index<RangeFrom<usize>> for Iter<'a, T>

fn index(&self, index: &RangeFrom<usize>) -> &[T]

type Output

impl<'a, T> Index<FullRange> for Iter<'a, T>

fn index(&self, _index: &FullRange) -> &[T]

type Output

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

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

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

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

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

type Item

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

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

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

fn len(&self) -> usize

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 for Iter<'a, T>

fn indexable(&self) -> usize

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