4 releases

0.2.1 May 6, 2020
0.2.0 May 4, 2020
0.1.1 May 3, 2020
0.1.0 May 3, 2020

#10 in #handling

Download history 1311/week @ 2024-03-15 732/week @ 2024-03-22 1293/week @ 2024-03-29 598/week @ 2024-04-05 785/week @ 2024-04-12 1003/week @ 2024-04-19 861/week @ 2024-04-26 1382/week @ 2024-05-03 956/week @ 2024-05-10 1807/week @ 2024-05-17 1028/week @ 2024-05-24 1221/week @ 2024-05-31 1372/week @ 2024-06-07 1209/week @ 2024-06-14 774/week @ 2024-06-21 169/week @ 2024-06-28

3,821 downloads per month
Used in nu-completion-script

Custom license

10KB
147 lines

beau_collector

Build Status Latest Version Rust Documentation

Collect all the errors from an iterator of Results into a single Error.

The default behaviour of running collect::<Result<_, _>>() on an iterator of Results which have some Err variants in is to collect to the first Err found and throw away the other errors.

beau_collector is a simple solution for when you want to collect all the errors from an iterator of Results and are happy for them to be put into a single simple Error, where each error is on a newline within the string representation of that error.

A use case for this could be in a CLI tool where you want to collect all the errors and print them to stderr for the user to see them all at once.

Contributing

Please do. See issues. Pick one to fix, or raise a new one.

Dependencies

~595KB
~11K SLoC