collect_array 0.1.3

Allows for collecting an Iterator into an exactly sized array.
Documentation
  • Coverage
  • 100%
    10 out of 10 items documented1 out of 3 items with examples
  • Size
  • Source code size: 18.57 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 524.4 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • illicitonion/collect_array
    4 2 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • illicitonion

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);