Skip to main content

Error

Trait Error 

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

    // Provided methods
    fn missing_resource() -> Self { ... }
    fn unexpected_resource(_resource: &R) -> Self { ... }
    fn missing_quad() -> Self { ... }
}

Required Methods§

Source

fn custom(str: impl ToString) -> Self

Provided Methods§

Source

fn missing_resource() -> Self

Source

fn unexpected_resource(_resource: &R) -> Self

Source

fn missing_quad() -> Self

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§