pub trait PrettyUnwrap {
type Inner;
// Required method
fn pretty_unwrap(self) -> Self::Inner;
}Expand description
A trait to provide a nicer way to unwarp anyhow::Result.
Required Associated Types§
Required Methods§
Sourcefn pretty_unwrap(self) -> Self::Inner
fn pretty_unwrap(self) -> Self::Inner
Behaves like [std::Result::unwrap] but will print the entire anyhow chain to stderr.
Implementations on Foreign Types§
Source§impl<T> PrettyUnwrap for Result<T>
Implement the trait for anyhow::Result.
impl<T> PrettyUnwrap for Result<T>
Implement the trait for anyhow::Result.