Trait stable_mir::mir::visit::MirVisitor

source ·
pub trait MirVisitor {
Show 43 methods // Provided methods fn visit_body(&mut self, body: &Body) { ... } fn visit_basic_block(&mut self, bb: &BasicBlock) { ... } fn visit_ret_decl(&mut self, local: Local, decl: &LocalDecl) { ... } fn visit_arg_decl(&mut self, local: Local, decl: &LocalDecl) { ... } fn visit_local_decl(&mut self, local: Local, decl: &LocalDecl) { ... } fn visit_statement(&mut self, stmt: &Statement, location: Location) { ... } fn visit_terminator(&mut self, term: &Terminator, location: Location) { ... } fn visit_span(&mut self, span: &Span) { ... } fn visit_place( &mut self, place: &Place, ptx: PlaceContext, location: Location, ) { ... } fn visit_projection_elem<'a>( &mut self, place_ref: PlaceRef<'a>, elem: &ProjectionElem, ptx: PlaceContext, location: Location, ) { ... } fn visit_local( &mut self, local: &Local, ptx: PlaceContext, location: Location, ) { ... } fn visit_rvalue(&mut self, rvalue: &Rvalue, location: Location) { ... } fn visit_operand(&mut self, operand: &Operand, location: Location) { ... } fn visit_user_type_projection(&mut self, projection: &UserTypeProjection) { ... } fn visit_ty(&mut self, ty: &Ty, location: Location) { ... } fn visit_const_operand( &mut self, constant: &ConstOperand, location: Location, ) { ... } fn visit_mir_const(&mut self, constant: &MirConst, location: Location) { ... } fn visit_ty_const(&mut self, constant: &TyConst, location: Location) { ... } fn visit_region(&mut self, region: &Region, location: Location) { ... } fn visit_args(&mut self, args: &GenericArgs, location: Location) { ... } fn visit_assert_msg(&mut self, msg: &AssertMessage, location: Location) { ... } fn visit_var_debug_info(&mut self, var_debug_info: &VarDebugInfo) { ... } fn super_body(&mut self, body: &Body) { ... } fn super_basic_block(&mut self, bb: &BasicBlock) { ... } fn super_local_decl(&mut self, local: Local, decl: &LocalDecl) { ... } fn super_ret_decl(&mut self, local: Local, decl: &LocalDecl) { ... } fn super_arg_decl(&mut self, local: Local, decl: &LocalDecl) { ... } fn super_statement(&mut self, stmt: &Statement, location: Location) { ... } fn super_terminator(&mut self, term: &Terminator, location: Location) { ... } fn super_span(&mut self, span: &Span) { ... } fn super_place( &mut self, place: &Place, ptx: PlaceContext, location: Location, ) { ... } fn super_projection_elem( &mut self, elem: &ProjectionElem, ptx: PlaceContext, location: Location, ) { ... } fn super_rvalue(&mut self, rvalue: &Rvalue, location: Location) { ... } fn super_operand(&mut self, operand: &Operand, location: Location) { ... } fn super_user_type_projection(&mut self, projection: &UserTypeProjection) { ... } fn super_ty(&mut self, ty: &Ty) { ... } fn super_const_operand( &mut self, constant: &ConstOperand, location: Location, ) { ... } fn super_mir_const(&mut self, constant: &MirConst, location: Location) { ... } fn super_ty_const(&mut self, constant: &TyConst) { ... } fn super_region(&mut self, region: &Region) { ... } fn super_args(&mut self, args: &GenericArgs) { ... } fn super_var_debug_info(&mut self, var_debug_info: &VarDebugInfo) { ... } fn super_assert_msg(&mut self, msg: &AssertMessage, location: Location) { ... }
}

Provided Methods§

source

fn visit_body(&mut self, body: &Body)

source

fn visit_basic_block(&mut self, bb: &BasicBlock)

source

fn visit_ret_decl(&mut self, local: Local, decl: &LocalDecl)

source

fn visit_arg_decl(&mut self, local: Local, decl: &LocalDecl)

source

fn visit_local_decl(&mut self, local: Local, decl: &LocalDecl)

source

fn visit_statement(&mut self, stmt: &Statement, location: Location)

source

fn visit_terminator(&mut self, term: &Terminator, location: Location)

source

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

source

fn visit_place(&mut self, place: &Place, ptx: PlaceContext, location: Location)

source

fn visit_projection_elem<'a>( &mut self, place_ref: PlaceRef<'a>, elem: &ProjectionElem, ptx: PlaceContext, location: Location, )

source

fn visit_local(&mut self, local: &Local, ptx: PlaceContext, location: Location)

source

fn visit_rvalue(&mut self, rvalue: &Rvalue, location: Location)

source

fn visit_operand(&mut self, operand: &Operand, location: Location)

source

fn visit_user_type_projection(&mut self, projection: &UserTypeProjection)

source

fn visit_ty(&mut self, ty: &Ty, location: Location)

source

fn visit_const_operand(&mut self, constant: &ConstOperand, location: Location)

source

fn visit_mir_const(&mut self, constant: &MirConst, location: Location)

source

fn visit_ty_const(&mut self, constant: &TyConst, location: Location)

source

fn visit_region(&mut self, region: &Region, location: Location)

source

fn visit_args(&mut self, args: &GenericArgs, location: Location)

source

fn visit_assert_msg(&mut self, msg: &AssertMessage, location: Location)

source

fn visit_var_debug_info(&mut self, var_debug_info: &VarDebugInfo)

source

fn super_body(&mut self, body: &Body)

source

fn super_basic_block(&mut self, bb: &BasicBlock)

source

fn super_local_decl(&mut self, local: Local, decl: &LocalDecl)

source

fn super_ret_decl(&mut self, local: Local, decl: &LocalDecl)

source

fn super_arg_decl(&mut self, local: Local, decl: &LocalDecl)

source

fn super_statement(&mut self, stmt: &Statement, location: Location)

source

fn super_terminator(&mut self, term: &Terminator, location: Location)

source

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

source

fn super_place(&mut self, place: &Place, ptx: PlaceContext, location: Location)

source

fn super_projection_elem( &mut self, elem: &ProjectionElem, ptx: PlaceContext, location: Location, )

source

fn super_rvalue(&mut self, rvalue: &Rvalue, location: Location)

source

fn super_operand(&mut self, operand: &Operand, location: Location)

source

fn super_user_type_projection(&mut self, projection: &UserTypeProjection)

source

fn super_ty(&mut self, ty: &Ty)

source

fn super_const_operand(&mut self, constant: &ConstOperand, location: Location)

source

fn super_mir_const(&mut self, constant: &MirConst, location: Location)

source

fn super_ty_const(&mut self, constant: &TyConst)

source

fn super_region(&mut self, region: &Region)

source

fn super_args(&mut self, args: &GenericArgs)

source

fn super_var_debug_info(&mut self, var_debug_info: &VarDebugInfo)

source

fn super_assert_msg(&mut self, msg: &AssertMessage, location: Location)

Implementors§