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]
impl<E: Display> Debug for ExitDisplay<E>
Prints the underlying error type, using Display
and not Debug
.
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<E: Display> From<E> for ExitDisplay<E>
[src]
impl<E: Display> From<E> for ExitDisplay<E>
Auto Trait Implementations
impl<E> Send for ExitDisplay<E> where
E: Send,
impl<E> Send for ExitDisplay<E> where
E: Send,
impl<E> Sync for ExitDisplay<E> where
E: Sync,
impl<E> Sync for ExitDisplay<E> where
E: Sync,