eros 0.8.1

Ergonomic error handling with typed or untyped errors, context, and no enum boilerplate.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! Extension traits for converting results, reshaping error sets, and adding context.
//!
//! ```
//! use eros::prelude::*;
//!
//! let result = Err::<(), _>(std::fmt::Error)
//!     .union::<(std::fmt::Error,), _>()
//!     .context("format response");
//! result.recover::<std::fmt::Error, _>(|_| ()).into_value();
//! ```

pub use crate::{Context, IntoAnyUnion, IntoUnion, ReshapeUnion};