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