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>) { ... }
}

Required Methods§

source

fn thir(&self) -> &'a Thir<'tcx>

Provided Methods§

source

fn visit_expr(&mut self, expr: &Expr<'tcx>)

source

fn visit_stmt(&mut self, stmt: &Stmt<'tcx>)

source

fn visit_block(&mut self, block: &Block)

source

fn visit_arm(&mut self, arm: &Arm<'tcx>)

source

fn visit_pat(&mut self, pat: &Pat<'tcx>)

Implementors§