chunk_iter

Crates.iochunk_iter
lib.rschunk_iter
version0.1.5
sourcesrc
created_at2021-05-18 17:31:50.810105
updated_at2022-07-25 00:11:53.465729
descriptionChunked iterator generic over any iterator.
homepage
repositoryhttps://github.com/frogtd/chunk_iter
max_upload_size
id399053
size9,453
(frogtd)

documentation

README

chunk_iter

It makes any iterable into chunks, using const generics.

#![no_std]

This crate is no_std.

Usage

use chunk_iter::ChunkIter;

for x in iter.chunks::<3>() {
    println!("{:?}", x); // x is a size 3 array of what iter contains
}
Commit count: 13

cargo fmt