Struct PrettyFields
pub struct PrettyFields { /* private fields */ }Expand description
An excessively pretty, human-readable MakeVisitor implementation.
Implementations§
§impl PrettyFields
impl PrettyFields
pub fn new() -> PrettyFields
pub fn new() -> PrettyFields
Returns a new default PrettyFields implementation.
pub fn with_ansi(self, ansi: bool) -> PrettyFields
👎Deprecated since 0.3.3: Use fmt::Subscriber::with_ansi or fmt::Layer::with_ansi instead.
pub fn with_ansi(self, ansi: bool) -> PrettyFields
fmt::Subscriber::with_ansi or fmt::Layer::with_ansi instead.Enable ANSI encoding for formatted fields.
Trait Implementations§
§impl Debug for PrettyFields
impl Debug for PrettyFields
§impl Default for PrettyFields
impl Default for PrettyFields
§fn default() -> PrettyFields
fn default() -> PrettyFields
Returns the “default value” for a type. Read more
§impl<'a> MakeVisitor<Writer<'a>> for PrettyFields
impl<'a> MakeVisitor<Writer<'a>> for PrettyFields
§type Visitor = PrettyVisitor<'a>
type Visitor = PrettyVisitor<'a>
The visitor type produced by this
MakeVisitor.§fn make_visitor(
&self,
target: Writer<'a>,
) -> <PrettyFields as MakeVisitor<Writer<'a>>>::Visitor
fn make_visitor( &self, target: Writer<'a>, ) -> <PrettyFields as MakeVisitor<Writer<'a>>>::Visitor
Make a new visitor for the provided
target.Auto Trait Implementations§
impl Freeze for PrettyFields
impl RefUnwindSafe for PrettyFields
impl Send for PrettyFields
impl Sync for PrettyFields
impl Unpin for PrettyFields
impl UnwindSafe for PrettyFields
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T, M> MakeExt<T> for Mwhere
M: MakeVisitor<T> + Sealed<MakeExtMarker<T>>,
impl<T, M> MakeExt<T> for Mwhere
M: MakeVisitor<T> + Sealed<MakeExtMarker<T>>,
§fn debug_alt(self) -> Alt<Self>
fn debug_alt(self) -> Alt<Self>
Wraps
self so that any fmt::Debug fields are recorded using the
alternate formatter ({:#?}).§fn display_messages(self) -> Messages<Self>
fn display_messages(self) -> Messages<Self>
Wraps
self so that any string fields named “message” are recorded
using fmt::Display.