pub trait ErrorExt: Sized {
type Result<E>;
type S: State + ?Sized;
// Required methods
fn build_error(self) -> Self::Result<Error<Self::S>>;
fn erase_error(self) -> Self::Result<impl Error + Send + Sync + 'static>;
}Expand description
Extension trait for materializing or erasing an error.
Required Associated Types§
Required Methods§
Sourcefn build_error(self) -> Self::Result<Error<Self::S>>
fn build_error(self) -> Self::Result<Error<Self::S>>
Materializes the final Error<Self::S>.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".