beau_collector

Crates.iobeau_collector
lib.rsbeau_collector
version0.2.1
sourcesrc
created_at2020-05-03 14:00:32.29899
updated_at2020-05-06 15:06:21.759938
descriptionCollect up all errors into a single error
homepagehttps://docs.rs/beau_collector
repositoryhttps://github.com/tarquin-the-brave/beau-collector/
max_upload_size
id237069
size13,681
(tarquin-the-brave)

documentation

https://docs.rs/beau_collector

README

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.

Commit count: 21

cargo fmt