Trait melib::error::ResultIntoError

source ·
pub trait ResultIntoError<T> {
    // Required methods
    fn chain_err_summary<M, F>(self, msg_fn: F) -> Result<T>
       where F: Fn() -> M,
             M: Into<Cow<'static, str>>;
    fn chain_err_details<M, F>(self, msg_fn: F) -> Result<T>
       where F: Fn() -> M,
             M: Into<Cow<'static, str>>;
    fn chain_err_kind(self, kind: ErrorKind) -> Result<T>;
}

Required Methods§

source

fn chain_err_summary<M, F>(self, msg_fn: F) -> Result<T>
where F: Fn() -> M, M: Into<Cow<'static, str>>,

source

fn chain_err_details<M, F>(self, msg_fn: F) -> Result<T>
where F: Fn() -> M, M: Into<Cow<'static, str>>,

source

fn chain_err_kind(self, kind: ErrorKind) -> Result<T>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T, I: Into<Error>> ResultIntoError<T> for Result<T, I>

source§

fn chain_err_summary<M, F>(self, msg_fn: F) -> Result<T>
where F: Fn() -> M, M: Into<Cow<'static, str>>,

source§

fn chain_err_details<M, F>(self, msg_fn: F) -> Result<T>
where F: Fn() -> M, M: Into<Cow<'static, str>>,

source§

fn chain_err_kind(self, kind: ErrorKind) -> Result<T>

Implementors§