pub struct CallGraph {
pub edges: Vec<CallGraphEdge>,
pub functions: HashSet<String>,
}Fields§
§edges: Vec<CallGraphEdge>§functions: HashSet<String>Implementations§
Source§impl CallGraph
impl CallGraph
pub fn new() -> Self
pub fn build(decls: &[LcnfFunDecl]) -> Self
pub fn callers_of(&self, fn_name: &str) -> Vec<&str>
pub fn callees_of(&self, fn_name: &str) -> Vec<&str>
pub fn in_degree(&self, fn_name: &str) -> usize
pub fn out_degree(&self, fn_name: &str) -> usize
pub fn num_edges(&self) -> usize
pub fn num_nodes(&self) -> usize
pub fn single_caller_functions(&self) -> Vec<&str>
pub fn leaf_functions(&self) -> Vec<&str>
Trait Implementations§
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