pub trait Visit {
// Required method
fn visit_with<'a>(&'a self, visitor: &mut impl Visitor<'a>);
}
Expand description
Trait implemented on “visitable” types (shallowly visitable, at least).
That is, an impl Visit for X
will call the relevant Visitor
method for
X
, typically named Visitor::visit_X
or Visitor::visit_X_use
.