Crates.io | chunk_iter |
lib.rs | chunk_iter |
version | 0.1.5 |
source | src |
created_at | 2021-05-18 17:31:50.810105 |
updated_at | 2022-07-25 00:11:53.465729 |
description | Chunked iterator generic over any iterator. |
homepage | |
repository | https://github.com/frogtd/chunk_iter |
max_upload_size | |
id | 399053 |
size | 9,453 |
It makes any iterable into chunks, using const generics.
#![no_std]
This crate is no_std
.
use chunk_iter::ChunkIter;
for x in iter.chunks::<3>() {
println!("{:?}", x); // x is a size 3 array of what iter contains
}