Skip to main content

Error

Trait Error 

Source
pub trait Error<R>: Sized {
    // Required method
    fn custom(str: impl ToString) -> Self;

    // Provided method
    fn ambiguous_resource(_r: &R) -> Self { ... }
}

Required Methods§

Source

fn custom(str: impl ToString) -> Self

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§