Struct exitfailure::ExitDisplay[][src]

pub struct ExitDisplay<E: Display>(_);

A newtype wrapper around E: std::fmt::Display

fn main() -> Result<(), ExitDisplay<String>> {
    Ok(some_fn()?)
}

fn some_fn() -> Result<(), String> {
    Err("some error".into())
}

Trait Implementations

impl<E: Display> Debug for ExitDisplay<E>
[src]

Prints the underlying error type, using Display and not Debug.

Formats the value using the given formatter. Read more

impl<E: Display> From<E> for ExitDisplay<E>
[src]

Performs the conversion.

Auto Trait Implementations

impl<E> Send for ExitDisplay<E> where
    E: Send

impl<E> Sync for ExitDisplay<E> where
    E: Sync