Trait problem::ProblemWhile

source ·
pub trait ProblemWhile<O> {
    fn problem_while(self, msg: impl Display) -> Result<O, Problem>;
    fn problem_while_with<F, M>(self, msg: F) -> Result<O, Problem>
    where
        F: FnOnce() -> M,
        M: Display
; }
Expand description

Add context to Result with Problem or that can be implicitly mapped to one

Required Methods§

Implementations on Foreign Types§

Implementors§