pub struct DisplayResult<'a, T, E> { /* private fields */ }
Expand description
Displays a Result<T,E>
if T and E are Display
.
It outputs "Ok(...)"
or "Err(...)"
.
Trait Implementations§
Source§impl<T, E> Display for DisplayResult<'_, T, E>
impl<T, E> Display for DisplayResult<'_, T, E>
Source§impl<T, E> DisplayConfig for DisplayResult<'_, T, E>
impl<T, E> DisplayConfig for DisplayResult<'_, T, E>
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, E> Freeze for DisplayResult<'a, T, E>
impl<'a, T, E> RefUnwindSafe for DisplayResult<'a, T, E>where
T: RefUnwindSafe,
E: RefUnwindSafe,
impl<'a, T, E> Send for DisplayResult<'a, T, E>
impl<'a, T, E> Sync for DisplayResult<'a, T, E>
impl<'a, T, E> Unpin for DisplayResult<'a, T, E>
impl<'a, T, E> UnwindSafe for DisplayResult<'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