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

#2692 in Rust patterns

Download history 128/week @ 2024-07-22 138/week @ 2024-07-29 194/week @ 2024-08-05 562/week @ 2024-08-12 182/week @ 2024-08-19 159/week @ 2024-08-26 197/week @ 2024-09-02 69/week @ 2024-09-09 332/week @ 2024-09-16 156/week @ 2024-09-23 125/week @ 2024-09-30 103/week @ 2024-10-07 165/week @ 2024-10-14 149/week @ 2024-10-21 621/week @ 2024-10-28 442/week @ 2024-11-04

1,387 downloads per month
Used in 4 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