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

#3 in #handling

Download history 693/week @ 2023-10-28 814/week @ 2023-11-04 638/week @ 2023-11-11 569/week @ 2023-11-18 633/week @ 2023-11-25 680/week @ 2023-12-02 316/week @ 2023-12-09 558/week @ 2023-12-16 290/week @ 2023-12-23 1273/week @ 2023-12-30 771/week @ 2024-01-06 1287/week @ 2024-01-13 693/week @ 2024-01-20 1454/week @ 2024-01-27 994/week @ 2024-02-03 1118/week @ 2024-02-10

4,571 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

~565KB
~11K SLoC