PrettyUnwrap

Trait PrettyUnwrap 

Source
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§

Source

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.

Source§

type Inner = T

Source§

fn pretty_unwrap(self) -> Self::Inner

Implementors§