pub trait GenericErrorExt<T, E>{
// Required methods
fn make_generic(self) -> Result<T, GenericError<E>>
where E: Error;
fn make_generic_untyped(self) -> Result<T, GenericError<Untyped>>
where E: Error + 'static;
}Expand description
This is an extension trait for the following impl:
ⓘ
#[extension(pub trait GenericErrorExt)]
impl< T, E > for Result < T, E >
where
E : std :: fmt :: Display + std :: fmt :: DebugRequired Methods§
fn make_generic(self) -> Result<T, GenericError<E>>where
E: Error,
fn make_generic_untyped(self) -> Result<T, GenericError<Untyped>>where
E: Error + 'static,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".