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
fn next<'a, T>(&mut self) -> Option<&'a [T]>
fn map<B>(self, |&'a [T]|: 'r -> B) -> Map<'r, &'a [T], B, 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 fuse<'a, T>(self) -> Fuse<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 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 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]>
Derived Implementations
Keyboard shortcuts
- ?
- Show this help dialog
- S
- Focus the search field
- ⇤
- Move up in search results
- ⇥
- Move down in search results
- ⏎
- Go to active search result
Search tricks
Prefix searches with a type followed by a colon (e.g.
fn:) to restrict the search to a given type.
Accepted types are: fn, mod,
struct (or str), enum,
trait, typedef (or
tdef).