Struct Subspace :: sus :: collections :: Chunks

template <class ItemT>
struct Chunks final
{ ... };

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.

Methods

sus::iter::ExactSizeIterator trait.

auto next() -> Option<sus::collections::Chunks::Item>
auto next_back() -> Option<sus::collections::Chunks::Item>
auto size_hint() const -> SizeHint