Trait rustc::mir::visit::Visitor [] [src]

pub trait Visitor<'tcx> {
    fn visit_mir(&mut self, mir: &Mir<'tcx>) { ... }
    fn visit_basic_block_data(&mut self, block: BasicBlock, data: &BasicBlockData<'tcx>) { ... }
    fn visit_scope_data(&mut self, scope_data: &ScopeData) { ... }
    fn visit_statement(&mut self, block: BasicBlock, statement: &Statement<'tcx>) { ... }
    fn visit_assign(&mut self, block: BasicBlock, lvalue: &Lvalue<'tcx>, rvalue: &Rvalue<'tcx>) { ... }
    fn visit_terminator(&mut self, block: BasicBlock, terminator: &Terminator<'tcx>) { ... }
    fn visit_terminator_kind(&mut self, block: BasicBlock, kind: &TerminatorKind<'tcx>) { ... }
    fn visit_rvalue(&mut self, rvalue: &Rvalue<'tcx>) { ... }
    fn visit_operand(&mut self, operand: &Operand<'tcx>) { ... }
    fn visit_lvalue(&mut self, lvalue: &Lvalue<'tcx>, context: LvalueContext) { ... }
    fn visit_projection(&mut self, lvalue: &LvalueProjection<'tcx>, context: LvalueContext) { ... }
    fn visit_projection_elem(&mut self, lvalue: &LvalueElem<'tcx>, context: LvalueContext) { ... }
    fn visit_branch(&mut self, source: BasicBlock, target: BasicBlock) { ... }
    fn visit_constant(&mut self, constant: &Constant<'tcx>) { ... }
    fn visit_literal(&mut self, literal: &Literal<'tcx>) { ... }
    fn visit_def_id(&mut self, def_id: &DefId) { ... }
    fn visit_span(&mut self, span: &Span) { ... }
    fn visit_fn_output(&mut self, fn_output: &FnOutput<'tcx>) { ... }
    fn visit_ty(&mut self, ty: &Ty<'tcx>) { ... }
    fn visit_substs(&mut self, substs: &&'tcx Substs<'tcx>) { ... }
    fn visit_closure_substs(&mut self, substs: &ClosureSubsts<'tcx>) { ... }
    fn visit_const_val(&mut self, const_val: &ConstVal) { ... }
    fn visit_const_usize(&mut self, const_usize: &ConstUsize) { ... }
    fn visit_typed_const_val(&mut self, val: &TypedConstVal<'tcx>) { ... }
    fn visit_var_decl(&mut self, var_decl: &VarDecl<'tcx>) { ... }
    fn visit_temp_decl(&mut self, temp_decl: &TempDecl<'tcx>) { ... }
    fn visit_arg_decl(&mut self, arg_decl: &ArgDecl<'tcx>) { ... }
    fn visit_scope_id(&mut self, scope_id: &ScopeId) { ... }
    fn super_mir(&mut self, mir: &Mir<'tcx>) { ... }
    fn super_basic_block_data(&mut self, block: BasicBlock, data: &BasicBlockData<'tcx>) { ... }
    fn super_scope_data(&mut self, scope_data: &ScopeData) { ... }
    fn super_statement(&mut self, block: BasicBlock, statement: &Statement<'tcx>) { ... }
    fn super_assign(&mut self, _block: BasicBlock, lvalue: &Lvalue<'tcx>, rvalue: &Rvalue<'tcx>) { ... }
    fn super_terminator(&mut self, block: BasicBlock, terminator: &Terminator<'tcx>) { ... }
    fn super_terminator_kind(&mut self, block: BasicBlock, kind: &TerminatorKind<'tcx>) { ... }
    fn super_rvalue(&mut self, rvalue: &Rvalue<'tcx>) { ... }
    fn super_operand(&mut self, operand: &Operand<'tcx>) { ... }
    fn super_lvalue(&mut self, lvalue: &Lvalue<'tcx>, context: LvalueContext) { ... }
    fn super_projection(&mut self, proj: &LvalueProjection<'tcx>, context: LvalueContext) { ... }
    fn super_projection_elem(&mut self, proj: &LvalueElem<'tcx>, _context: LvalueContext) { ... }
    fn super_var_decl(&mut self, var_decl: &VarDecl<'tcx>) { ... }
    fn super_temp_decl(&mut self, temp_decl: &TempDecl<'tcx>) { ... }
    fn super_arg_decl(&mut self, arg_decl: &ArgDecl<'tcx>) { ... }
    fn super_scope_id(&mut self, _scope_id: &ScopeId) { ... }
    fn super_branch(&mut self, _source: BasicBlock, _target: BasicBlock) { ... }
    fn super_constant(&mut self, constant: &Constant<'tcx>) { ... }
    fn super_typed_const_val(&mut self, constant: &TypedConstVal<'tcx>) { ... }
    fn super_literal(&mut self, literal: &Literal<'tcx>) { ... }
    fn super_def_id(&mut self, _def_id: &DefId) { ... }
    fn super_span(&mut self, _span: &Span) { ... }
    fn super_fn_output(&mut self, fn_output: &FnOutput<'tcx>) { ... }
    fn super_ty(&mut self, _ty: &Ty<'tcx>) { ... }
    fn super_substs(&mut self, _substs: &&'tcx Substs<'tcx>) { ... }
    fn super_closure_substs(&mut self, _substs: &ClosureSubsts<'tcx>) { ... }
    fn super_const_val(&mut self, _substs: &ConstVal) { ... }
    fn super_const_usize(&mut self, _substs: &ConstUsize) { ... }
}
Unstable (rustc_private)

Provided Methods

fn visit_mir(&mut self, mir: &Mir<'tcx>)

Unstable (rustc_private)

fn visit_basic_block_data(&mut self, block: BasicBlock, data: &BasicBlockData<'tcx>)

Unstable (rustc_private)

fn visit_scope_data(&mut self, scope_data: &ScopeData)

Unstable (rustc_private)

fn visit_statement(&mut self, block: BasicBlock, statement: &Statement<'tcx>)

Unstable (rustc_private)

fn visit_assign(&mut self, block: BasicBlock, lvalue: &Lvalue<'tcx>, rvalue: &Rvalue<'tcx>)

Unstable (rustc_private)

fn visit_terminator(&mut self, block: BasicBlock, terminator: &Terminator<'tcx>)

Unstable (rustc_private)

fn visit_terminator_kind(&mut self, block: BasicBlock, kind: &TerminatorKind<'tcx>)

Unstable (rustc_private)

fn visit_rvalue(&mut self, rvalue: &Rvalue<'tcx>)

Unstable (rustc_private)

fn visit_operand(&mut self, operand: &Operand<'tcx>)

Unstable (rustc_private)

fn visit_lvalue(&mut self, lvalue: &Lvalue<'tcx>, context: LvalueContext)

Unstable (rustc_private)

fn visit_projection(&mut self, lvalue: &LvalueProjection<'tcx>, context: LvalueContext)

Unstable (rustc_private)

fn visit_projection_elem(&mut self, lvalue: &LvalueElem<'tcx>, context: LvalueContext)

Unstable (rustc_private)

fn visit_branch(&mut self, source: BasicBlock, target: BasicBlock)

Unstable (rustc_private)

fn visit_constant(&mut self, constant: &Constant<'tcx>)

Unstable (rustc_private)

fn visit_literal(&mut self, literal: &Literal<'tcx>)

Unstable (rustc_private)

fn visit_def_id(&mut self, def_id: &DefId)

Unstable (rustc_private)

fn visit_span(&mut self, span: &Span)

Unstable (rustc_private)

fn visit_fn_output(&mut self, fn_output: &FnOutput<'tcx>)

Unstable (rustc_private)

fn visit_ty(&mut self, ty: &Ty<'tcx>)

Unstable (rustc_private)

fn visit_substs(&mut self, substs: &&'tcx Substs<'tcx>)

Unstable (rustc_private)

fn visit_closure_substs(&mut self, substs: &ClosureSubsts<'tcx>)

Unstable (rustc_private)

fn visit_const_val(&mut self, const_val: &ConstVal)

Unstable (rustc_private)

fn visit_const_usize(&mut self, const_usize: &ConstUsize)

Unstable (rustc_private)

fn visit_typed_const_val(&mut self, val: &TypedConstVal<'tcx>)

Unstable (rustc_private)

fn visit_var_decl(&mut self, var_decl: &VarDecl<'tcx>)

Unstable (rustc_private)

fn visit_temp_decl(&mut self, temp_decl: &TempDecl<'tcx>)

Unstable (rustc_private)

fn visit_arg_decl(&mut self, arg_decl: &ArgDecl<'tcx>)

Unstable (rustc_private)

fn visit_scope_id(&mut self, scope_id: &ScopeId)

Unstable (rustc_private)

fn super_mir(&mut self, mir: &Mir<'tcx>)

Unstable (rustc_private)

fn super_basic_block_data(&mut self, block: BasicBlock, data: &BasicBlockData<'tcx>)

Unstable (rustc_private)

fn super_scope_data(&mut self, scope_data: &ScopeData)

Unstable (rustc_private)

fn super_statement(&mut self, block: BasicBlock, statement: &Statement<'tcx>)

Unstable (rustc_private)

fn super_assign(&mut self, _block: BasicBlock, lvalue: &Lvalue<'tcx>, rvalue: &Rvalue<'tcx>)

Unstable (rustc_private)

fn super_terminator(&mut self, block: BasicBlock, terminator: &Terminator<'tcx>)

Unstable (rustc_private)

fn super_terminator_kind(&mut self, block: BasicBlock, kind: &TerminatorKind<'tcx>)

Unstable (rustc_private)

fn super_rvalue(&mut self, rvalue: &Rvalue<'tcx>)

Unstable (rustc_private)

fn super_operand(&mut self, operand: &Operand<'tcx>)

Unstable (rustc_private)

fn super_lvalue(&mut self, lvalue: &Lvalue<'tcx>, context: LvalueContext)

Unstable (rustc_private)

fn super_projection(&mut self, proj: &LvalueProjection<'tcx>, context: LvalueContext)

Unstable (rustc_private)

fn super_projection_elem(&mut self, proj: &LvalueElem<'tcx>, _context: LvalueContext)

Unstable (rustc_private)

fn super_var_decl(&mut self, var_decl: &VarDecl<'tcx>)

Unstable (rustc_private)

fn super_temp_decl(&mut self, temp_decl: &TempDecl<'tcx>)

Unstable (rustc_private)

fn super_arg_decl(&mut self, arg_decl: &ArgDecl<'tcx>)

Unstable (rustc_private)

fn super_scope_id(&mut self, _scope_id: &ScopeId)

Unstable (rustc_private)

fn super_branch(&mut self, _source: BasicBlock, _target: BasicBlock)

Unstable (rustc_private)

fn super_constant(&mut self, constant: &Constant<'tcx>)

Unstable (rustc_private)

fn super_typed_const_val(&mut self, constant: &TypedConstVal<'tcx>)

Unstable (rustc_private)

fn super_literal(&mut self, literal: &Literal<'tcx>)

Unstable (rustc_private)

fn super_def_id(&mut self, _def_id: &DefId)

Unstable (rustc_private)

fn super_span(&mut self, _span: &Span)

Unstable (rustc_private)

fn super_fn_output(&mut self, fn_output: &FnOutput<'tcx>)

Unstable (rustc_private)

fn super_ty(&mut self, _ty: &Ty<'tcx>)

Unstable (rustc_private)

fn super_substs(&mut self, _substs: &&'tcx Substs<'tcx>)

Unstable (rustc_private)

fn super_closure_substs(&mut self, _substs: &ClosureSubsts<'tcx>)

Unstable (rustc_private)

fn super_const_val(&mut self, _substs: &ConstVal)

Unstable (rustc_private)

fn super_const_usize(&mut self, _substs: &ConstUsize)

Unstable (rustc_private)

Implementors