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

#2447 in Rust patterns

Download history 84/week @ 2024-03-14 97/week @ 2024-03-21 178/week @ 2024-03-28 177/week @ 2024-04-04 149/week @ 2024-04-11 136/week @ 2024-04-18 73/week @ 2024-04-25 72/week @ 2024-05-02 86/week @ 2024-05-09 128/week @ 2024-05-16 114/week @ 2024-05-23 144/week @ 2024-05-30 1438/week @ 2024-06-06 1822/week @ 2024-06-13 2344/week @ 2024-06-20 3054/week @ 2024-06-27

8,672 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