pub struct CallGraph<M, P = Built>{ /* private fields */ }Implementations§
Source§impl<M> CallGraph<M, Building>where
M: Mode,
impl<M> CallGraph<M, Building>where
M: Mode,
pub fn new() -> CallGraph<M, Building>
pub fn set_builtins(&mut self, b: VertexSet) -> &mut CallGraph<M, Building>
pub fn insert_module(&mut self, name: ModuleName, summary: ModuleSummary)
pub fn record_definition(&mut self, mfa: Mfa, loc: Loc)
pub fn record_on_load(&mut self, mfa: Mfa)
pub fn record_deprecation(&mut self, mfa: Mfa, d: Deprecation)
pub fn insert_local_call(&mut self, caller: Mfa, callee: Mfa)
pub fn insert_external_call(&mut self, caller: Mfa, callee: Mfa)
pub fn insert_unresolved(&mut self, site: UnresolvedCallSite)
pub fn finish(self) -> CallGraph<M>
Source§impl<M> CallGraph<M>where
M: Mode,
impl<M> CallGraph<M>where
M: Mode,
pub fn modules(&self) -> impl Iterator<Item = (&ModuleName, &ModuleSummary)>
pub fn module(&self, name: &ModuleName) -> Option<&ModuleSummary>
pub fn def_at(&self, mfa: &Mfa) -> Option<&Loc>
pub fn deprecation(&self, mfa: &Mfa) -> Option<&Deprecation>
pub fn deprecated_mfas(&self) -> impl Iterator<Item = (&Mfa, &Deprecation)>
pub fn on_load_functions(&self) -> &BTreeSet<Mfa>
pub fn builtins(&self) -> &VertexSet
pub fn module_edges(&self) -> &Relation
pub fn application_edges(&self) -> &Relation
pub fn behaviour_edges(&self) -> &Relation
pub fn unresolved_calls(&self) -> &BTreeSet<UnresolvedCallSite>
pub fn defined_functions(&self) -> VertexSet
Trait Implementations§
Auto Trait Implementations§
impl<M, P> Freeze for CallGraph<M, P>
impl<M, P> RefUnwindSafe for CallGraph<M, P>where
M: RefUnwindSafe,
P: RefUnwindSafe,
impl<M, P> Send for CallGraph<M, P>
impl<M, P> Sync for CallGraph<M, P>
impl<M, P> Unpin for CallGraph<M, P>
impl<M, P> UnsafeUnpin for CallGraph<M, P>
impl<M, P> UnwindSafe for CallGraph<M, P>where
M: UnwindSafe,
P: UnwindSafe,
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