Crate multi_try

Source
Expand description

This crate allows you to combine multiple Result types and return either a tuple containing all of their results, or a Vec of any errors which occurred. It is useful when you want to provide an error message for all errors rather than simply returning the first error.

Generics are used to support Result<T, E> for any types of T and E. The Ok types of the combined results are NOT required to be the same, but all of the Err types must be the same.

See the documentation for the MultiTry trait for more information and an example.

Traitsยง

MultiTry
Exposes the and_try method for combining multiple Result types.