pub trait Visitor: VisitorHelper {
    fn visit(&mut self, v: &dyn Visitable) -> Self::Output;

    fn visit_children(&mut self, v: &dyn Visitable) -> Self::Output { ... }
}

Required Methods§

Provided Methods§

Examples found in repository?
examples/enum.rs (line 46)
45
46
47
    fn visit_b(&mut self, b: &B) -> <Self as another_visitor::VisitorHelper>::Output {
        format!("(B {})", self.visit_children(b))
    }

Implementors§