collect_array

Allows for collecting an Iterator into an exactly sized array.

crates.io Documentation Build Status

Example

```rust use collect_array::CollectArrayResult;

let result: CollectArrayResult<_, 2> = vec![1, 2].intoiter().collect(); asserteq!(CollectArrayResult::Ok([1, 2]), result); ```