pub trait Visit<'i, T: Visit<'i, T, V>, V: Visitor<'i, T>> {
    const CHILD_TYPES: VisitTypes;

    fn visit_children(&mut self, visitor: &mut V);

    fn visit(&mut self, visitor: &mut V) { ... }
}
Expand description

A trait for values that can be visited by a Visitor.

Required Associated Constants§

The types of values contained within this value and its children. This is used to skip branches that don’t have any values requested by the Visitor.

Required Methods§

Visit the children of this value.

Provided Methods§

Visits the value by calling an appropriate method on the Visitor. If no corresponding visitor method exists, then the children are visited.

Implementations on Foreign Types§

Implementors§