pub trait Z {
type Error;
// Required methods
fn long_form(&self) -> String;
fn with_info<X: Debug>(self, name: &str, value: X) -> Self::Error;
fn with_lazy_info<F: FnOnce() -> String>(
self,
name: &str,
value: F,
) -> Self::Error;
}
Expand description
The core type of zerror. Implement this trait, or wrap and proxy ErrorCore, to create rich errors in the long_form. This integrates with the error handling “monad” over Result<T, Z>.
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.