V
Size: a a a
V
J
J
V
JM
IB
A
OS
EG
EG
trait LogResult {
fn log(self) -> Self;
}
impl<T, E> LogResult for Result<T, E> where Self: Display {
fn log(self) -> Self {
if let Err(e) = &self {
log::error!("{}", &self);
}
self
}
}
EG
my_fallible_operation().log()?
OS
A
K
A
JĐ
K
JC
JC