Struct std::slice::ChunksExperimental [-]  [+] [src]

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

An iterator over a slice in (non-overlapping) chunks (size elements at a time).

When the slice len is not evenly divided by the chunk size, the last slice of the iteration will be the remainder.

Trait Implementations

impl<'a, T> Iterator<&'a [T]> for Chunks<'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 Chunks<'a, T>

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

impl<'a, T> RandomAccessIterator<&'a [T]> for Chunks<'a, T>

fn indexable(&self) -> uint

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

Derived Implementations

impl<'a, T: Clone + 'a> Clone for Chunks<'a, T>

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

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