pub struct DisplayOption<'a, T> { /* private fields */ }
Expand description
Displays a Option<T>
.
This is the return value of calling a Option<T>::display()
.
Trait Implementations§
Source§impl<T> Display for DisplayOption<'_, T>where
T: ToDisplay,
impl<T> Display for DisplayOption<'_, T>where
T: ToDisplay,
Source§impl<T> DisplayConfig for DisplayOption<'_, T>
impl<T> DisplayConfig for DisplayOption<'_, T>
Source§fn context_mut(&mut self) -> &mut Context
fn context_mut(&mut self) -> &mut Context
Return a mutable reference to the context to let the caller modify it.
Source§fn limit_items(self, max_items: usize) -> Self
fn limit_items(self, max_items: usize) -> Self
Set the maximum number of items to display for collections. Read more
Source§fn use_local_time(self) -> Self
fn use_local_time(self) -> Self
Configures timestamps to display in local time.
Source§fn use_utc_time(self) -> Self
fn use_utc_time(self) -> Self
Configures timestamps to display in UTC.
Source§fn use_short_time(self) -> Self
fn use_short_time(self) -> Self
Sets a concise time format (
%H:%M:%S%.6f
).Source§fn use_full_time(self) -> Self
fn use_full_time(self) -> Self
Sets a detailed time format (
%Y-%m-%dT%H:%M:%S%.6fZ%z
).Source§fn with_time_format(self, time_format: &'static str) -> Self
fn with_time_format(self, time_format: &'static str) -> Self
Sets a custom time format string. Read more
Auto Trait Implementations§
impl<'a, T> Freeze for DisplayOption<'a, T>
impl<'a, T> RefUnwindSafe for DisplayOption<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for DisplayOption<'a, T>where
T: Sync,
impl<'a, T> Sync for DisplayOption<'a, T>where
T: Sync,
impl<'a, T> Unpin for DisplayOption<'a, T>
impl<'a, T> UnwindSafe for DisplayOption<'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