Trait ErrWith

Source
pub trait ErrWith<T, E> {
    // Required method
    fn err_with<W>(self, with: W) -> Result<T, (E, W)>;
}

Required Methods§

Source

fn err_with<W>(self, with: W) -> Result<T, (E, W)>

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, E> ErrWith<T, E> for Result<T, E>

Source§

fn err_with<W>(self, with: W) -> Result<T, (E, W)>

Implementors§