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
1,387 downloads per month
Used in 4 crates
(via itermore)
12KB
162 lines
arrays
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();