Crates.io | arrays |
lib.rs | arrays |
version | 0.2.0 |
source | src |
created_at | 2022-11-28 14:17:36.841127 |
updated_at | 2023-12-15 09:10:46.165719 |
description | Construct an array from an iterator |
homepage | |
repository | https://github.com/rossmacarthur/itermore |
max_upload_size | |
id | 724467 |
size | 28,312 |
Construct an array from an iterator and other helpers.
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();
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.