pub trait Visitable {
// Required method
fn visit(
&mut self,
visitor: &mut dyn Visitor,
component: &mut Component,
signatures: &LibrarySignatures,
components: &[Component],
) -> VisResult;
}
Expand description
Describes types that can be visited by things implementing Visitor. This performs a recursive walk of the tree.
It calls Visitor::start_*
on the way down, and Visitor::finish_*
on
the way up.