pub struct CallGraphVisitor<'b, 'tcx> {
    tcx: TyCtxt<'tcx>,
    def_id: DefId,
    body: &'tcx Body<'tcx>,
    call_graph_info: &'b mut CallGraphInfo<'tcx>,
}Fields§
§tcx: TyCtxt<'tcx>§def_id: DefId§body: &'tcx Body<'tcx>§call_graph_info: &'b mut CallGraphInfo<'tcx>Implementations§
Source§impl<'b, 'tcx> CallGraphVisitor<'b, 'tcx>
 
impl<'b, 'tcx> CallGraphVisitor<'b, 'tcx>
pub fn new( tcx: TyCtxt<'tcx>, def_id: DefId, body: &'tcx Body<'tcx>, call_graph_info: &'b mut CallGraphInfo<'tcx>, ) -> Self
pub fn add_in_call_graph( &mut self, caller_def_path: &String, callee_def_id: DefId, callee_def_path: &String, terminator: &'tcx Terminator<'tcx>, )
pub fn visit(&mut self)
fn add_to_call_graph( &mut self, callee_def_id: DefId, is_virtual: Option<bool>, terminator: &'tcx Terminator<'tcx>, )
fn visit_terminator(&mut self, terminator: &'tcx Terminator<'tcx>)
fn handle_virtual_call( &mut self, caller_def_path: &String, stub_def_id: DefId, stub_def_path: &String, terminator: &'tcx Terminator<'tcx>, )
Auto Trait Implementations§
impl<'b, 'tcx> Freeze for CallGraphVisitor<'b, 'tcx>
impl<'b, 'tcx> !RefUnwindSafe for CallGraphVisitor<'b, 'tcx>
impl<'b, 'tcx> !Send for CallGraphVisitor<'b, 'tcx>
impl<'b, 'tcx> !Sync for CallGraphVisitor<'b, 'tcx>
impl<'b, 'tcx> Unpin for CallGraphVisitor<'b, 'tcx>
impl<'b, 'tcx> !UnwindSafe for CallGraphVisitor<'b, 'tcx>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more