| Crates.io | beau_collector |
| lib.rs | beau_collector |
| version | 0.2.1 |
| created_at | 2020-05-03 14:00:32.29899+00 |
| updated_at | 2020-05-06 15:06:21.759938+00 |
| description | Collect up all errors into a single error |
| homepage | https://docs.rs/beau_collector |
| repository | https://github.com/tarquin-the-brave/beau-collector/ |
| max_upload_size | |
| id | 237069 |
| size | 13,681 |
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.
Please do. See issues. Pick one to fix, or raise a new one.