Trait GenericErrorExt

Source
pub trait GenericErrorExt<T, E>
where E: Display + Debug,
{ // 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

Required Methods§

Source

fn make_generic(self) -> Result<T, GenericError<E>>
where E: Error,

Source

fn make_generic_untyped(self) -> Result<T, GenericError<Untyped>>
where E: Error + 'static,

Implementations on Foreign Types§

Source§

impl<T, E> GenericErrorExt<T, E> for Result<T, E>
where E: Display + Debug,

Source§

fn make_generic(self) -> Result<T, GenericError<E>>
where E: Error,

Source§

fn make_generic_untyped(self) -> Result<T, GenericError<Untyped>>
where E: Error + 'static,

Implementors§