pub struct FmtCompactResultDisplay<'a, T, E>(pub &'a Result<T, E>);Expand description
A wrapper with fmt::Display for Result<T, E> where E: Error that
prints the error chain on Err or - on Ok
Tuple Fields§
§0: &'a Result<T, E>Trait Implementations§
Auto Trait Implementations§
impl<'a, T, E> Freeze for FmtCompactResultDisplay<'a, T, E>
impl<'a, T, E> RefUnwindSafe for FmtCompactResultDisplay<'a, T, E>where
T: RefUnwindSafe,
E: RefUnwindSafe,
impl<'a, T, E> Send for FmtCompactResultDisplay<'a, T, E>
impl<'a, T, E> Sync for FmtCompactResultDisplay<'a, T, E>
impl<'a, T, E> Unpin for FmtCompactResultDisplay<'a, T, E>
impl<'a, T, E> UnwindSafe for FmtCompactResultDisplay<'a, T, E>where
T: RefUnwindSafe,
E: 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