stable_mir::mir::visitTrait 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(
&mut self,
place_ref: PlaceRef<'_>,
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) { ... }
}