pub struct DisplayOption<T>(pub Option<T>);Expand description
It displays a Option<T>, where T implements std::fmt::Display
Tuple Fields§
§0: Option<T>Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for DisplayOption<T>
impl<T> RefUnwindSafe for DisplayOption<T>where
Option<T>: RefUnwindSafe,
impl<T> Send for DisplayOption<T>
impl<T> Sync for DisplayOption<T>
impl<T> Unpin for DisplayOption<T>
impl<T> UnsafeUnpin for DisplayOption<T>where
Option<T>: UnsafeUnpin,
impl<T> UnwindSafe for DisplayOption<T>where
Option<T>: UnwindSafe,
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