Trait CoerceResult

Source
pub trait CoerceResult<T, E1> {
    // Required method
    fn coerce<E2: From<E1>>(self) -> Result<T, E2>;
}

Required Methods§

Source

fn coerce<E2: From<E1>>(self) -> Result<T, E2>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T, E1> CoerceResult<T, E1> for Result<T, E1>

Source§

fn coerce<E2: From<E1>>(self) -> Result<T, E2>

Implementors§