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> Slice<uint, [T]> for IterMut<'a, T>

fn as_slice_<'b>(&'b self) -> &'b [T]

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

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

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

impl<'a, T> SliceMut<uint, [T]> for IterMut<'a, T>

fn as_mut_slice_<'b>(&'b mut self) -> &'b mut [T]

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

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

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

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

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

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

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

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

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

fn rposition<P>(&mut self, predicate: P) -> Option<uint> where P: FnMut(A) -> bool

fn len(&self) -> uint