pub struct DisplayOption<T>(pub Option<T>);Expand description
Displays an Option<T> using T’s fmt::Display impl,
or “(null)” if the Option was None.
Tuple Fields§
§0: Option<T>Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for DisplayOption<T>where
T: Freeze,
impl<T> RefUnwindSafe for DisplayOption<T>where
T: RefUnwindSafe,
impl<T> Send for DisplayOption<T>where
T: Send,
impl<T> Sync for DisplayOption<T>where
T: Sync,
impl<T> Unpin for DisplayOption<T>where
T: Unpin,
impl<T> UnsafeUnpin for DisplayOption<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for DisplayOption<T>where
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