rustc_middle::thir::visit

Trait Visitor

source
pub trait Visitor<'thir, 'tcx: 'thir>: Sized {
    // Required method
    fn thir(&self) -> &'thir Thir<'tcx>;

    // Provided methods
    fn visit_expr(&mut self, expr: &'thir Expr<'tcx>) { ... }
    fn visit_stmt(&mut self, stmt: &'thir Stmt<'tcx>) { ... }
    fn visit_block(&mut self, block: &'thir Block) { ... }
    fn visit_arm(&mut self, arm: &'thir Arm<'tcx>) { ... }
    fn visit_pat(&mut self, pat: &'thir Pat<'tcx>) { ... }
}

Required Methods§

source

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

Provided Methods§

source

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

source

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

source

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

source

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

source

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

Object Safety§

This trait is not object safe.

Implementors§