risingwave_frontend::utils

Trait Visit

source
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.

Required Methods§

source

fn visit(&mut self, t: &T)

Provided Methods§

source

fn pre(&mut self, t: &T)

source

fn post(&mut self, t: &T)

source

fn tree_visit(&mut self, t: &T)

Implementors§