Trait IntoError

Source
pub trait IntoError<E>: Sized {
    // Required method
    fn into_error_by(self, format: Format<E>) -> Error;

    // Provided method
    fn into_error(self) -> Error { ... }
}

Required Methods§

Source

fn into_error_by(self, format: Format<E>) -> Error

Provided Methods§

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.

Implementors§