[−][src]Trait cotton::prelude::ProblemWhile
Convert to Problem
if needed and add context to it
Associated Types
type WithContext
Required methods
fn problem_while<impl ToString>(
self,
message: impl ToString
) -> Self::WithContext where
impl ToString: ToString,
self,
message: impl ToString
) -> Self::WithContext where
impl ToString: ToString,
Add context information
fn problem_while_with<F, M>(self, message: F) -> Self::WithContext where
F: FnOnce() -> M,
M: ToString,
F: FnOnce() -> M,
M: ToString,
Add context information from function call
Implementations on Foreign Types
impl<O, E> ProblemWhile for Result<O, E> where
E: Into<Problem>,
[src]
E: Into<Problem>,
type WithContext = Result<O, Problem>
fn problem_while<impl ToString>(
self,
message: impl ToString
) -> Result<O, Problem> where
impl ToString: ToString,
[src]
self,
message: impl ToString
) -> Result<O, Problem> where
impl ToString: ToString,
fn problem_while_with<F, M>(self, message: F) -> Result<O, Problem> where
F: FnOnce() -> M,
M: ToString,
[src]
F: FnOnce() -> M,
M: ToString,
Implementors
impl ProblemWhile for Problem
[src]
type WithContext = Problem
fn problem_while<impl ToString>(self, message: impl ToString) -> Problem where
impl ToString: ToString,
[src]
impl ToString: ToString,
fn problem_while_with<F, M>(self, message: F) -> Problem where
F: FnOnce() -> M,
M: ToString,
[src]
F: FnOnce() -> M,
M: ToString,