4 releases (2 breaking)

0.2.0 Dec 15, 2023
0.1.1 Dec 4, 2022
0.1.0 Nov 29, 2022
0.0.0 Nov 28, 2022

#2744 in Rust patterns

Download history 867/week @ 2024-06-04 1722/week @ 2024-06-11 2360/week @ 2024-06-18 2992/week @ 2024-06-25 2870/week @ 2024-07-02 2465/week @ 2024-07-09 860/week @ 2024-07-16 114/week @ 2024-07-23 183/week @ 2024-07-30 153/week @ 2024-08-06 576/week @ 2024-08-13 171/week @ 2024-08-20 196/week @ 2024-08-27 157/week @ 2024-09-03 73/week @ 2024-09-10 321/week @ 2024-09-17

759 downloads per month
Used in 3 crates (via itermore)

MIT/Apache

12KB
162 lines

arrays

Crates.io Version Docs.rs Latest Build Status

Construct an array from an iterator and other helpers.

Getting started

Add the arrays crate to your Cargo manifest.

cargo add arrays

Now get the next N items from an iterator.

let arr: [_; 3] = arrays::from_iter(iter).unwrap();

License

This project is distributed under the terms of both the MIT license and the Apache License (Version 2.0).

See LICENSE-APACHE and LICENSE-MIT for details.


lib.rs:

Construct an array from an iterator and other helpers.

Getting started

Add the arrays crate to your Cargo manifest.

cargo add arrays

Now get the next N items from an iterator.

let arr: [_; 3] = arrays::from_iter(iter).unwrap();

No runtime deps