pub trait Visit<T: Tree> {
// Required method
fn visit(&mut self, t: &T);
// Provided methods
fn pre(&mut self, t: &T) { ... }
fn post(&mut self, t: &T) { ... }
fn tree_visit(&mut self, t: &T) { ... }
}
Expand description
A similar trait to generate traversal over tree-like structure.
See Endo
for more details.