Struct core::slice::IterMutStable [-]  [+] [src]

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

Mutable slice iterator.

Methods

impl<'a, T> IterMut<'a, T>

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

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

To avoid creating &mut references that alias, this is forced to consume the iterator. Consider using the Slice and SliceMut implementations for obtaining slices with more restricted lifetimes that do not consume the iterator.

Trait Implementations

impl<'a, T> Index<Range<usize>> for IterMut<'a, T>

type Output = [T]

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

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

type Output = [T]

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

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

type Output = [T]

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

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

type Output = [T]

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

impl<'a, T> IndexMut<Range<usize>> for IterMut<'a, T>

type Output = [T]

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

impl<'a, T> IndexMut<RangeTo<usize>> for IterMut<'a, T>

type Output = [T]

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

impl<'a, T> IndexMut<RangeFrom<usize>> for IterMut<'a, T>

type Output = [T]

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

impl<'a, T> IndexMut<FullRange> for IterMut<'a, T>

type Output = [T]

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

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

type Item = &'a mut T

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

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

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

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

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

fn len(&self) -> usize