pub trait Visitor<'a, 'tcx: 'a>: Sized {
fn thir(&self) -> &'a Thir<'tcx>;
fn visit_expr(&mut self, expr: &Expr<'tcx>) { ... }
fn visit_stmt(&mut self, stmt: &Stmt<'tcx>) { ... }
fn visit_block(&mut self, block: &Block) { ... }
fn visit_arm(&mut self, arm: &Arm<'tcx>) { ... }
fn visit_pat(&mut self, pat: &Pat<'tcx>) { ... }
}
Required Methods
Provided Methods
source
fn visit_expr(&mut self, expr: &Expr<'tcx>)
source
fn visit_stmt(&mut self, stmt: &Stmt<'tcx>)
source