[][src]Trait problem::ProblemWhile

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
; }

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

Required methods

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

Loading content...

Implementations on Foreign Types

impl<O, E> ProblemWhile<O> for Result<O, E> where
    E: Into<Problem>, 
[src]

Loading content...

Implementors

Loading content...