pub trait ErrorType {
type ErrorKind;
// Required method
fn new(
kind: Self::ErrorKind,
cause: Option<Box<Self>>,
location: &'static Location<'static>,
) -> Self;
}
Expand description
Trait for error types created by declare_error_type.
Required Associated Types§
Required 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.