Skip to main content

IntoError

Trait IntoError 

Source
pub trait IntoError {
    type ErrorResult<E>;

    // Required method
    fn into_error(self) -> Self::ErrorResult<Error>;
}

Required Associated Types§

Required Methods§

Source

fn into_error(self) -> Self::ErrorResult<Error>

Wrap into Error type implementing std::error::Error trait

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<O, E> IntoError for Result<O, E>
where E: Into<Problem>,

Source§

type ErrorResult<EE> = Result<O, EE>

Source§

fn into_error(self) -> Self::ErrorResult<Error>

Implementors§