pub struct Xref<M: Mode> { /* private fields */ }Implementations§
Source§impl Xref<Functions>
impl Xref<Functions>
Sourcepub fn undefined_function_calls(&self) -> UndefinedFunctionCalls
pub fn undefined_function_calls(&self) -> UndefinedFunctionCalls
External calls whose target is not defined in any loaded module and is not a builtin.
Sourcepub fn exports_not_used(&self) -> ExportsNotUsed
pub fn exports_not_used(&self) -> ExportsNotUsed
Exports that no other module calls.
Sourcepub fn locals_not_used(&self) -> LocalsNotUsed
pub fn locals_not_used(&self) -> LocalsNotUsed
Locals that are not called from any function in the same module.
Sourcepub fn deprecated_function_calls(&self) -> DeprecatedFunctionCalls
pub fn deprecated_function_calls(&self) -> DeprecatedFunctionCalls
External calls whose target is marked deprecated.
Sourcepub fn called_by(&self, target: &Mfa, transitive: bool) -> CallersOf
pub fn called_by(&self, target: &Mfa, transitive: bool) -> CallersOf
Functions that call into target. With transitive, the preimage
under the transitive closure of the call relation.
Sourcepub fn calls_from(&self, source: &Mfa, transitive: bool) -> CalleesOf
pub fn calls_from(&self, source: &Mfa, transitive: bool) -> CalleesOf
Functions that source calls.
Sourcepub fn unresolved_calls(&self) -> UnresolvedCalls
pub fn unresolved_calls(&self) -> UnresolvedCalls
All recorded unresolved call sites.
Source§impl<M: Mode> Xref<M>
impl<M: Mode> Xref<M>
Sourcepub fn module_called_by(&self, target: &ModuleName) -> ModuleCallers
pub fn module_called_by(&self, target: &ModuleName) -> ModuleCallers
Modules that depend on target (one-hop, module-level).
pub fn module_call(&self, source: &ModuleName) -> ModuleDependencies
pub fn implementers_of(&self, behaviour: &BehaviourName) -> BTreeSet<ModuleName>
Sourcepub fn module_cycles(&self) -> Vec<Vec<ModuleName>>
pub fn module_cycles(&self) -> Vec<Vec<ModuleName>>
Strongly connected components of the module call graph that contain more than one module.
Trait Implementations§
Auto Trait Implementations§
impl<M> !Freeze for Xref<M>
impl<M> RefUnwindSafe for Xref<M>
impl<M> Send for Xref<M>
impl<M> Sync for Xref<M>
impl<M> Unpin for Xref<M>
impl<M> UnsafeUnpin for Xref<M>
impl<M> UnwindSafe for Xref<M>
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