Crates.io | gatherr |
lib.rs | gatherr |
version | 0.1.0 |
source | src |
created_at | 2020-10-04 10:13:43.822247 |
updated_at | 2020-10-04 10:13:43.822247 |
description | Helpers for collecting values and errors from result iterators |
homepage | |
repository | https://github.com/Skynoodle/gatherr |
max_upload_size | |
id | 295998 |
size | 6,651 |
This library provides helpers to convert iterators of results into results
of collections of values or errors. The standard library provides FromIterator
for Result directly, which serves many of the same goals as this crate. However,
the standard library implementation only allows collecting into a result of all
values or the first error. This crate differs in that all errors are preserved
in the chosen collection type, allowing more complete error reporting with
similar ergonomics.