Skip to main content

IntoFailure

Trait IntoFailure 

Source
pub trait IntoFailure: Sized {
    // Required method
    fn fail(self) -> Failure;
}
Expand description

Helper trait for converting a value into a type-erased Failure.

Required Methods§

Source

fn fail(self) -> Failure

Converts this value into a type-erased Failure.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<E> IntoFailure for E
where E: ErrorDiagnostic + Into<Error<E>>,