pub struct CallGraph { /* private fields */ }Expand description
A symbol- and module-level call/dependency graph.
Nodes are addressed by a stable string id of the form
path::to::file.ts#symbol_name, or by the file path alone for
module-level edges.
Implementations§
Source§impl CallGraph
impl CallGraph
pub fn new() -> Self
pub fn ensure_node(&mut self, id: impl Into<String>) -> NodeIndex
pub fn add_edge(&mut self, from: &str, to: &str, kind: EdgeKind)
pub fn node_count(&self) -> usize
pub fn edge_count(&self) -> usize
pub fn inner(&self) -> &DiGraph<String, EdgeKind>
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