collect_array

Crates.iocollect_array
lib.rscollect_array
version0.1.3
sourcesrc
created_at2021-04-06 21:22:34.801443
updated_at2021-06-09 23:34:21.780468
descriptionAllows for collecting an Iterator into an exactly sized array.
homepage
repositoryhttps://github.com/illicitonion/collect_array
max_upload_size
id380014
size18,946
Daniel Wagner-Hall (illicitonion)

documentation

README

collect_array

Allows for collecting an Iterator into an exactly sized array.

crates.io Documentation Build Status

Example

use collect_array::CollectArrayResult;

let result: CollectArrayResult<_, 2> = vec![1, 2].into_iter().collect();
assert_eq!(CollectArrayResult::Ok([1, 2]), result);
Commit count: 4

cargo fmt