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

pub struct Chunks<'a, T> where 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 for Chunks<'a, T>

type Item = &'a [T]

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

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

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

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

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

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

fn len(&self) -> usize

impl<'a, T> RandomAccessIterator for Chunks<'a, T>

fn indexable(&self) -> usize

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

Derived Implementations

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

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

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