pub struct OptionFormatter<T>(pub Option<T>);
Expand description
A formatter for Option<T>
types.
It formats Some(value)
as the value itself, and None
as “NULL”.
Tuple Fields§
§0: Option<T>
Trait Implementations§
Source§impl<T: Debug> Debug for OptionFormatter<T>
impl<T: Debug> Debug for OptionFormatter<T>
Source§impl<T: Display> Display for OptionFormatter<T>
impl<T: Display> Display for OptionFormatter<T>
Source§impl<T: LowerHex> LowerHex for OptionFormatter<T>
impl<T: LowerHex> LowerHex for OptionFormatter<T>
Auto Trait Implementations§
impl<T> Freeze for OptionFormatter<T>where
T: Freeze,
impl<T> RefUnwindSafe for OptionFormatter<T>where
T: RefUnwindSafe,
impl<T> Send for OptionFormatter<T>where
T: Send,
impl<T> Sync for OptionFormatter<T>where
T: Sync,
impl<T> Unpin for OptionFormatter<T>where
T: Unpin,
impl<T> UnwindSafe for OptionFormatter<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