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>

source

fn write(self, record: &Record<'_>) -> Result<()>

source

fn subtle_style(&self, text: &'static str) -> StyledValue<'static, &'static str>

source

fn write_header_value<T>(&mut self, value: T) -> Result<()>where T: Display,

source

fn write_level(&mut self, record: &Record<'_>) -> Result<()>

source

fn write_timestamp(&mut self) -> Result<()>

source

fn write_module_path(&mut self, record: &Record<'_>) -> Result<()>

source

fn write_target(&mut self, record: &Record<'_>) -> Result<()>

source

fn finish_header(&mut self) -> Result<()>

source

fn write_args(&mut self, record: &Record<'_>) -> Result<()>

Auto Trait Implementations§

§

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> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.