Trait grafix_toolbox::lib::ExplainError

source ·
pub trait ExplainError<T>: Sized {
    // Required method
    fn explain_err<R: Into<String>>(self, msg: impl FnOnce() -> R) -> Res<T>;
}

Required Methods§

source

fn explain_err<R: Into<String>>(self, msg: impl FnOnce() -> R) -> Res<T>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T> ExplainError<T> for Option<T>

source§

fn explain_err<R: Into<String>>(self, msg: impl FnOnce() -> R) -> Res<T>

source§

impl<T, E: Display> ExplainError<T> for Result<T, E>

source§

fn explain_err<R: Into<String>>(self, msg: impl FnOnce() -> R) -> Res<T>

Implementors§