[][src]Trait problem::MapProblemOr

pub trait MapProblemOr {
    type ProblemCarrier;
    fn map_problem_or(self, problem: impl Into<Problem>) -> Self::ProblemCarrier;
fn map_problem_or_else<F, P>(self, problem: F) -> Self::ProblemCarrier
    where
        F: FnOnce() -> P,
        P: Into<Problem>
; }

Map type not containing any error to type containing given Problem

Associated Types

Loading content...

Required methods

fn map_problem_or(self, problem: impl Into<Problem>) -> Self::ProblemCarrier

fn map_problem_or_else<F, P>(self, problem: F) -> Self::ProblemCarrier where
    F: FnOnce() -> P,
    P: Into<Problem>, 

Loading content...

Implementations on Foreign Types

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

Mapping Result with Option<E> to Result with Problem where E implements Into<Problem>

type ProblemCarrier = Result<O, Problem>

Loading content...

Implementors

Loading content...