logo
pub struct PrettyFields { /* private fields */ }
Available on crate features fmt and std only.
Expand description

An excessively pretty, human-readable MakeVisitor implementation.

Implementations

Returns a new default PrettyFields implementation.

👎 Deprecated since 0.3.3:

Use fmt::Subscriber::with_ansi or fmt::Layer::with_ansi instead.

Enable ANSI encoding for formatted fields.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

The visitor type produced by this MakeVisitor.

Make a new visitor for the provided target.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

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

Wraps self so that any fmt::Debug fields are recorded using the alternate formatter ({:#?}). Read more

Wraps self so that any string fields named “message” are recorded using fmt::Display. Read more

Wraps self so that when fields are formatted to a writer, they are separated by the provided delimiter. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more