struct Chunks
Declaration
template <class ItemT>
struct Chunks { /* full declaration omitted */ };Description
An iterator over a slice in (non-overlapping) chunks (`chunk_size` elements at a time), starting at the beginning of the slice. When the slice len is not evenly divided by the chunk size, the last slice of the iteration will be the remainder. This struct is created by the `chunks()` method on slices.
Declared at: sus/collections/iterators/chunks.h:35
Templates
- ItemT
Method Overview
- public ::sus::num::usize exact_size_hint() const noexcept
- public Option<sus::collections::Chunks::Item> next() noexcept
- public Option<sus::collections::Chunks::Item> next_back() noexcept
- public ::sus::iter::SizeHint size_hint() const noexcept
Methods
¶::sus::num::usize exact_size_hint() const noexcept
::sus::num::usize exact_size_hint() const noexceptDescription
sus::iter::ExactSizeIterator trait.
Declared at: sus/collections/iterators/chunks.h:94
¶Option<sus::collections::Chunks::Item>
next() noexcept
Option<sus::collections::Chunks::Item>
next() noexceptDeclared at: sus/collections/iterators/chunks.h:48
¶Option<sus::collections::Chunks::Item>
next_back() noexcept
Option<sus::collections::Chunks::Item>
next_back() noexceptDeclared at: sus/collections/iterators/chunks.h:61
¶::sus::iter::SizeHint size_hint() const noexcept
::sus::iter::SizeHint size_hint() const noexceptDeclared at: sus/collections/iterators/chunks.h:88