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 :: Debug