[][src]Trait error_context::ResultErrorWhile

pub trait ResultErrorWhile<C> {
    type ContextError;
    fn error_while(self, context: C) -> Self::ContextError;
fn error_while_with<F>(self, context: F) -> Self::ContextError
    where
        F: FnOnce() -> C
; }

Add context to error carried by another type like Result

Associated Types

Loading content...

Required methods

fn error_while(self, context: C) -> Self::ContextError

fn error_while_with<F>(self, context: F) -> Self::ContextError where
    F: FnOnce() -> C, 

Loading content...

Implementations on Foreign Types

impl<O, E, C> ResultErrorWhile<C> for Result<O, E> where
    E: WithContext<C, ContextError = E>, 
[src]

type ContextError = Self

Loading content...

Implementors

Loading content...