Module outcome::diagnostic
source · [−]Available on crate feature
diagnostic
only.Expand description
Support for the miette
crate.
This module re-exports miette
’s Report
as well as Result
, and
provides a trait, WrapFailure
, as a mirror to the WrapErr
trait.
Additionally, WrapFailure
is also implemented for Result<T, E>
.
Lastly, to stay in line with behavior from miette
, the WrapFailure
trait is also sealed.
Re-exports
Traits
This trait is meant to be the outcome
analogue of both
miette::WrapErr
and eyre::WrapErr
. Therefore, any type that
implements WrapErr
for either of these libraries will automatically work
with WrapFailure
.