struct DefaultFormat<'a> {
timestamp: Option<TimestampPrecision>,
module_path: bool,
target: bool,
level: bool,
written_header_value: bool,
indent: Option<usize>,
buf: &'a mut Formatter,
suffix: &'a str,
}
Expand description
The default format.
This format needs to work with any combination of crate features.
Fields§
§timestamp: Option<TimestampPrecision>
§module_path: bool
§target: bool
§level: bool
§written_header_value: bool
§indent: Option<usize>
§buf: &'a mut Formatter
§suffix: &'a str
Implementations§
source§impl<'a> DefaultFormat<'a>
impl<'a> DefaultFormat<'a>
fn write(self, record: &Record<'_>) -> Result<()>
fn subtle_style(&self, text: &'static str) -> StyledValue<'static, &'static str>
fn write_header_value<T>(&mut self, value: T) -> Result<()>where
T: Display,
fn write_level(&mut self, record: &Record<'_>) -> Result<()>
fn write_timestamp(&mut self) -> Result<()>
fn write_module_path(&mut self, record: &Record<'_>) -> Result<()>
fn write_target(&mut self, record: &Record<'_>) -> Result<()>
fn finish_header(&mut self) -> Result<()>
fn write_args(&mut self, record: &Record<'_>) -> Result<()>
Auto Trait Implementations§
impl<'a> Freeze for DefaultFormat<'a>
impl<'a> !RefUnwindSafe for DefaultFormat<'a>
impl<'a> !Send for DefaultFormat<'a>
impl<'a> !Sync for DefaultFormat<'a>
impl<'a> Unpin for DefaultFormat<'a>
impl<'a> !UnwindSafe for DefaultFormat<'a>
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