pub trait VisitOutput<Out>: Visit {
// Required method
fn finish(self) -> Out;
// Provided method
fn visit<R>(self, fields: &R) -> Out
where R: RecordFields,
Self: Sized { ... }
}
Expand description
A visitor that produces output once it has visited a set of fields.
Required Methods§
Provided Methods§
Sourcefn visit<R>(self, fields: &R) -> Outwhere
R: RecordFields,
Self: Sized,
fn visit<R>(self, fields: &R) -> Outwhere
R: RecordFields,
Self: Sized,
Visit a set of fields, and return the output of finishing the visitor once the fields have been visited.
Implementors§
impl<'a> VisitOutput<Result<(), Error>> for DefaultVisitor<'a>
Available on crate features
fmt
and std
only.impl<'a> VisitOutput<Result<(), Error>> for JsonVisitor<'a>
Available on crate features
fmt
and std
only.impl<'a> VisitOutput<Result<(), Error>> for PrettyVisitor<'a>
Available on crate features
fmt
and std
only.impl<'a, F> VisitOutput<Result<(), Error>> for FieldFnVisitor<'a, F>
Available on crate features
fmt
and std
only.