pub trait Warn where
Self: Sized, {
type Value;
fn or_warn<H: Handler>(
self,
handler: &mut H,
level: Problem,
message: &str
) -> Option<Self::Value>;
fn or_print(self, level: Problem, message: &str) -> Option<Self::Value> { ... }
}
Expand description
Sugar for logging errors in results.