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§

source

fn finish(self) -> Out

Completes the visitor, returning any output.

This is called once a full set of fields has been visited.

Provided Methods§

source

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§

source§

impl<'a> VisitOutput<Result<(), Error>> for DefaultVisitor<'a>

source§

impl<'a> VisitOutput<Result<(), Error>> for JsonVisitor<'a>

source§

impl<'a> VisitOutput<Result<(), Error>> for PrettyVisitor<'a>

source§

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

source§

impl<D, V> VisitOutput<Result<(), Error>> for VisitDelimited<D, V>where V: VisitFmt, D: AsRef<str>,

source§

impl<V, O> VisitOutput<O> for Alt<V>where V: VisitOutput<O>,

source§

impl<V, O> VisitOutput<O> for Messages<V>where V: VisitOutput<O>,