[][src]Struct exitfailure::ExitDisplay

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

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

This example panics
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.

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

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<!> for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.