Struct collections::slice::Chunks 1.0.0
[−]
[src]
pub struct Chunks<'a, T> where
T: 'a, { /* 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>
[src]
type Item = &'a [T]
fn next(&mut self) -> Option<&'a [T]>
fn size_hint(&self) -> (usize, Option<usize>)
fn count(self) -> usize
fn nth(&mut self, n: usize) -> Option<<Chunks<'a, T> as Iterator>::Item>
fn last(self) -> Option<<Chunks<'a, T> as Iterator>::Item>
impl<'a, T> FusedIterator for Chunks<'a, T>
[src]
impl<'a, T> DoubleEndedIterator for Chunks<'a, T>
[src]
impl<'a, T> ExactSizeIterator for Chunks<'a, T>
[src]
impl<'a, T> Clone for Chunks<'a, T>
[src]
impl<'a, T> Debug for Chunks<'a, T> where
T: 'a + Debug,
[src]
T: 'a + Debug,