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

#2707 in Rust patterns

Download history 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 437/week @ 2024-11-04 416/week @ 2024-11-11 155/week @ 2024-11-18 514/week @ 2024-11-25 312/week @ 2024-12-02 1064/week @ 2024-12-09

2,057 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