pub struct CallGraphInfo {
pub functions: HashMap<usize, Node>,
pub function_calls: HashMap<usize, HashSet<usize>>,
pub node_registry: HashMap<String, usize>,
}
Fields§
§functions: HashMap<usize, Node>
§function_calls: HashMap<usize, HashSet<usize>>
§node_registry: HashMap<String, usize>
Implementations§
source§impl CallGraphInfo
impl CallGraphInfo
pub fn new() -> Self
pub fn get_node_num(&self) -> usize
pub fn get_callees_path( &self, caller_def_path: &String, ) -> Option<HashSet<String>>
pub fn add_node(&mut self, def_id: DefId, def_path: &String)
pub fn add_funciton_call_edge(&mut self, caller_id: usize, callee_id: usize)
pub fn get_noed_by_path(&self, def_path: &String) -> Option<usize>
pub fn print_call_graph(&self)
Auto Trait Implementations§
impl Freeze for CallGraphInfo
impl RefUnwindSafe for CallGraphInfo
impl Send for CallGraphInfo
impl Sync for CallGraphInfo
impl Unpin for CallGraphInfo
impl UnwindSafe for CallGraphInfo
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