pub struct CallGraph { /* private fields */ }Expand description
Call graph over all functions in a module.
Implementations§
Source§impl CallGraph
impl CallGraph
Sourcepub fn callees(&self, f: FunctionId) -> &[FunctionId]
pub fn callees(&self, f: FunctionId) -> &[FunctionId]
Public API for callees.
Sourcepub fn callers(&self, f: FunctionId) -> &[FunctionId]
pub fn callers(&self, f: FunctionId) -> &[FunctionId]
Public API for callers.
Sourcepub fn edges(&self, f: FunctionId) -> &[CallEdge]
pub fn edges(&self, f: FunctionId) -> &[CallEdge]
Public API for edges.
Sourcepub fn sccs(&self) -> Vec<Vec<FunctionId>>
pub fn sccs(&self) -> Vec<Vec<FunctionId>>
Return SCCs in bottom-up order over the direct-call graph.
Auto Trait Implementations§
impl Freeze for CallGraph
impl RefUnwindSafe for CallGraph
impl Send for CallGraph
impl Sync for CallGraph
impl Unpin for CallGraph
impl UnsafeUnpin for CallGraph
impl UnwindSafe for CallGraph
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