Skip to main content

IntoError

Trait IntoError 

Source
pub trait IntoError {
    type Error: Error;

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

Required Associated Types§

Required Methods§

Source

fn into_error(self) -> Result<(), Self::Error>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl IntoError for i32

Source§

impl IntoError for ()

Implementors§