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", so this trait is not object safe.

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§