#array #no-std #from-iter

no-std arrays

Construct an array from an iterator

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

#226 in #array

Download history 76/week @ 2023-12-20 138/week @ 2023-12-27 46/week @ 2024-01-03 73/week @ 2024-01-10 6/week @ 2024-01-17 11/week @ 2024-01-24 31/week @ 2024-01-31 12/week @ 2024-02-07 119/week @ 2024-02-14 147/week @ 2024-02-21 145/week @ 2024-02-28 100/week @ 2024-03-06 76/week @ 2024-03-13 93/week @ 2024-03-20 182/week @ 2024-03-27 152/week @ 2024-04-03

539 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