Struct tracing_subscriber::fmt::format::FieldFn
source · pub struct FieldFn<F>(_);
Expand description
A FormatFields
implementation that formats fields by calling a function
or closure.
Trait Implementations§
source§impl<'a, F> MakeVisitor<&'a mut (dyn Write + 'a)> for FieldFn<F>where
F: Fn(&mut dyn Write, &Field, &dyn Debug) -> Result + Clone,
impl<'a, F> MakeVisitor<&'a mut (dyn Write + 'a)> for FieldFn<F>where
F: Fn(&mut dyn Write, &Field, &dyn Debug) -> Result + Clone,
§type Visitor = FieldFnVisitor<'a, F>
type Visitor = FieldFnVisitor<'a, F>
The visitor type produced by this
MakeVisitor
.source§fn make_visitor(&self, writer: &'a mut dyn Write) -> Self::Visitor
fn make_visitor(&self, writer: &'a mut dyn Write) -> Self::Visitor
Make a new visitor for the provided
target
.