[−][src]Trait error_context::ResultErrorWhile
Add context to error carried by another type like Result
Associated Types
type ContextError
Required methods
fn error_while(self, context: C) -> Self::ContextError
fn error_while_with<F>(self, context: F) -> Self::ContextError where
F: FnOnce() -> C,
F: FnOnce() -> C,
Implementations on Foreign Types
impl<O, E, C> ResultErrorWhile<C> for Result<O, E> where
E: WithContext<C, ContextError = E>,
[src]
E: WithContext<C, ContextError = E>,
type ContextError = Self
fn error_while(self, context: C) -> Self
[src]
fn error_while_with<F>(self, context: F) -> Self::ContextError where
F: FnOnce() -> C,
[src]
F: FnOnce() -> C,