pub struct Display<'a, E, S> { /* private fields */ }
Expand description
Configurable display formatting for the Record
.
Implementations§
source§impl<'a, E, S> Display<'a, E, S>
impl<'a, E, S> Display<'a, E, S>
sourcepub fn colored(&mut self, on: bool) -> &mut Self
pub fn colored(&mut self, on: bool) -> &mut Self
Show colored output (on by default).
Requires the colored
feature to be enabled.
sourcepub fn head(&mut self, on: bool) -> &mut Self
pub fn head(&mut self, on: bool) -> &mut Self
Show the current position in the output (on by default).
sourcepub fn set_st_fmt(
&mut self,
st_fmt: &'a dyn Fn(SystemTime, SystemTime) -> String
) -> &mut Self
pub fn set_st_fmt( &mut self, st_fmt: &'a dyn Fn(SystemTime, SystemTime) -> String ) -> &mut Self
Sets the format used to display SystemTime
s.
The first input parameter is the current system time. The second input parameter is the system time of the event.
Trait Implementations§
Auto Trait Implementations§
impl<'a, E, S> !RefUnwindSafe for Display<'a, E, S>
impl<'a, E, S> !Send for Display<'a, E, S>
impl<'a, E, S> !Sync for Display<'a, E, S>
impl<'a, E, S> Unpin for Display<'a, E, S>
impl<'a, E, S> !UnwindSafe for Display<'a, E, S>
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