Skip to content

tarquin-the-brave/beau-collector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages