pub trait Visitor: Sized + Sealed {
    type Result;
    type ListVisitor: ListVisitor<Result = Self::Result>;
    type AssocVisitor: AssocVisitor<Result = Self::Result>;

    fn var_name(&self) -> VarName<'_>;
    fn visit_undefined(self) -> Self::Result;
    fn visit_string<T: Display>(self, v: T) -> Self::Result;
    fn visit_list(self) -> Self::ListVisitor;
    fn visit_assoc(self) -> Self::AssocVisitor;
}
Expand description

Variable visitor.

See the module documentation for usage.

Required Associated Types

Result of the visit.

List visitor.

Associative array visitor.

Required Methods

Returns the name of the variable to visit.

Visits an undefined variable, i.e. indicates that the requested variable is unavailable.

Visits a string variable.

Visits a list variable.

Visits an associative array variable.

Implementors