Skip to main content

ErrorMap

Trait ErrorMap 

Source
pub trait ErrorMap<T, E0> {
    type R;

    // Required method
    fn cxm<S, MF>(self, mf: MF) -> Self::R
       where MF: FnOnce() -> S,
             S: ToOwned<Owned = String>,
             String: Borrow<S>;
}

Required Associated Types§

Source

type R

Required Methods§

Source

fn cxm<S, MF>(self, mf: MF) -> Self::R
where MF: FnOnce() -> S, S: ToOwned<Owned = String>, String: Borrow<S>,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T, E0> ErrorMap<T, E0> for Result<T, E0>
where E0: Into<Error>,

Source§

type R = Result<T, Error>

Source§

fn cxm<S, MF>(self, mf: MF) -> Self::R
where MF: FnOnce() -> S, S: ToOwned<Owned = String>, String: Borrow<S>,

Implementors§