Skip to main content

MakeOutput

Trait MakeOutput 

Source
pub trait MakeOutput<T, Out>: MakeVisitor<T> + Sealed<(T, Out)>
where Self::Visitor: VisitOutput<Out>,
{ // Provided method fn visit_with<F>(&self, target: T, fields: &F) -> Out where F: RecordFields { ... } }
Available on crate feature tracing only.
Expand description

Extension trait implemented for all MakeVisitor implementations that produce a visitor implementing VisitOutput.

Provided Methods§

Source

fn visit_with<F>(&self, target: T, fields: &F) -> Out
where F: RecordFields,

Visits all fields in fields with a new visitor constructed from target.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T, Out, M> MakeOutput<T, Out> for M
where M: MakeVisitor<T>, <M as MakeVisitor<T>>::Visitor: VisitOutput<Out>,