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§
Provided Methods§
fn missing_resource() -> Self
fn unexpected_resource(_resource: &R) -> Self
fn missing_quad() -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".