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§
fn into_error_by(self, format: Format<E>) -> Error
Provided Methods§
fn into_error(self) -> Error
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.