[][src]Struct superkeyloader_lib::ExitDisplay

pub struct ExitDisplay<E>(_)
where
    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> Debug for ExitDisplay<E> where
    E: Display
[src]

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

impl<E> From<E> for ExitDisplay<E> where
    E: Display
[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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,