Trait rustc_middle::thir::visit::Visitor
source · pub trait Visitor<'a, 'tcx: 'a>: Sized {
// Required method
fn thir(&self) -> &'a Thir<'tcx>;
// Provided methods
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>) { ... }
}