[−][src]Struct exitfailure::ExitDisplay
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][+]
impl<E: Display> From<E> for ExitDisplay<E>
[src][+]
Auto Trait Implementations
impl<E> RefUnwindSafe for ExitDisplay<E> where
E: RefUnwindSafe,
E: RefUnwindSafe,
impl<E> Send for ExitDisplay<E> where
E: Send,
E: Send,
impl<E> Sync for ExitDisplay<E> where
E: Sync,
E: Sync,
impl<E> Unpin for ExitDisplay<E> where
E: Unpin,
E: Unpin,
impl<E> UnwindSafe for ExitDisplay<E> where
E: UnwindSafe,
E: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
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][+]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,