🛈 Note: This is pre-release documentation for the upcoming tracing 0.2.0 ecosystem.

For the release documentation, please see docs.rs, instead.

pub trait VisitFmt: VisitOutput<Result> {
    // Required method
    fn writer(&mut self) -> &mut dyn Write;
}
Expand description

Extension trait implemented by visitors to indicate that they write to a fmt::Write instance, and allow access to that writer.

Required Methods§

source

fn writer(&mut self) -> &mut dyn Write

Returns the formatter that this visitor writes to.

Implementors§

source§

impl<'a> VisitFmt for DefaultVisitor<'a>

Available on crate features fmt and std only.
source§

impl<'a> VisitFmt for JsonVisitor<'a>

Available on crate features fmt and std only.
source§

impl<'a> VisitFmt for PrettyVisitor<'a>

Available on crate features fmt and std only.
source§

impl<'a, F> VisitFmt for FieldFnVisitor<'a, F>
where F: Fn(&mut Writer<'a>, &Field, &dyn Debug) -> Result,

Available on crate features fmt and std only.
source§

impl<D, V> VisitFmt for VisitDelimited<D, V>
where V: VisitFmt, D: AsRef<str>,

source§

impl<V> VisitFmt for Alt<V>
where V: VisitFmt,

source§

impl<V> VisitFmt for Messages<V>
where V: VisitFmt,