Struct collections::slice::Chunks[src]

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

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

When the vector 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<'a, T>(&mut self) -> Option<&'a [T]>

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

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

fn chain<U: Iterator<&'a [T]>>(self, U) -> Chain<Chunks<'a, T>, U>

fn zip<B, U: Iterator<B>>(self, U) -> Zip<Chunks<'a, T>, U>

fn map<B>(self, |&'a [T]|: 'r -> B) -> Map<'r, &'a [T], B, Chunks<'a, T>>

fn filter<'a, T>(self, |&&'a [T]|: 'r -> bool) -> Filter<'r, &'a [T], Chunks<'a, T>>

fn filter_map<B>(self, |&'a [T]|: 'r -> Option<B>) -> FilterMap<'r, &'a [T], B, Chunks<'a, T>>

fn enumerate<'a, T>(self) -> Enumerate<Chunks<'a, T>>

fn peekable<'a, T>(self) -> Peekable<&'a [T], Chunks<'a, T>>

fn skip_while<'a, T>(self, |&&'a [T]|: 'r -> bool) -> SkipWhile<'r, &'a [T], Chunks<'a, T>>

fn take_while<'a, T>(self, |&&'a [T]|: 'r -> bool) -> TakeWhile<'r, &'a [T], Chunks<'a, T>>

fn skip<'a, T>(self, uint) -> Skip<Chunks<'a, T>>

fn take<'a, T>(self, uint) -> Take<Chunks<'a, T>>

fn scan<St, B>(self, St, |&mut St, &'a [T]|: 'r -> Option<B>) -> Scan<'r, &'a [T], B, Chunks<'a, T>, St>

fn flat_map<B, U: Iterator<B>>(self, |&'a [T]|: 'r -> U) -> FlatMap<'r, &'a [T], Chunks<'a, T>, U>

fn fuse<'a, T>(self) -> Fuse<Chunks<'a, T>>

fn inspect<'a, T>(self, |&&'a [T]|: 'r) -> Inspect<'r, &'a [T], Chunks<'a, T>>

fn by_ref<'a, T>(&'r mut self) -> ByRef<'r, Chunks<'a, T>>

fn advance<'a, T>(&mut self, |&'a [T]| -> bool) -> bool

fn collect<B: FromIterator<&'a [T]>>(&mut self) -> B

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

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

fn fold<B>(&mut self, B, |B, &'a [T]| -> B) -> B

fn count<'a, T>(&mut self) -> uint

fn all<'a, T>(&mut self, |&'a [T]| -> bool) -> bool

fn any<'a, T>(&mut self, |&'a [T]| -> bool) -> bool

fn find<'a, T>(&mut self, |&&'a [T]| -> bool) -> Option<&'a [T]>

fn position<'a, T>(&mut self, |&'a [T]| -> bool) -> Option<uint>

fn max_by<B: Ord>(&mut self, |&&'a [T]| -> B) -> Option<&'a [T]>

fn min_by<B: Ord>(&mut self, |&&'a [T]| -> B) -> Option<&'a [T]>

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

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

fn rev<'a, T>(self) -> Rev<Chunks<'a, T>>

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

fn indexable<'a, T>(&self) -> uint

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

Derived Implementations

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

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

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