pub struct FmtCompactResultAnyhowDisplay<'a, T>(pub &'a Result<T, Error>);Expand description
A wrapper with fmt::Display for Result<T, anyhow::Error> that
prints the error chain on Err or - on Ok
Tuple Fields§
§0: &'a Result<T, Error>Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for FmtCompactResultAnyhowDisplay<'a, T>
impl<'a, T> RefUnwindSafe for FmtCompactResultAnyhowDisplay<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for FmtCompactResultAnyhowDisplay<'a, T>where
T: Sync,
impl<'a, T> Sync for FmtCompactResultAnyhowDisplay<'a, T>where
T: Sync,
impl<'a, T> Unpin for FmtCompactResultAnyhowDisplay<'a, T>
impl<'a, T> UnwindSafe for FmtCompactResultAnyhowDisplay<'a, T>where
T: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more