Skip to main content

CallGraph

Struct CallGraph 

Source
pub struct CallGraph<M: Mode, P: Phase = Built> { /* private fields */ }

Implementations§

Source§

impl<M: Mode> CallGraph<M, Building>

Source

pub fn new() -> Self

Source

pub fn set_builtins(&mut self, b: VertexSet) -> &mut Self

Source

pub fn insert_module(&mut self, name: ModuleName, summary: ModuleSummary)

Source

pub fn record_definition(&mut self, mfa: Mfa, loc: Loc)

Source

pub fn record_on_load(&mut self, mfa: Mfa)

Source

pub fn record_deprecation(&mut self, mfa: Mfa, d: Deprecation)

Source

pub fn insert_local_call(&mut self, caller: Mfa, callee: Mfa)

Source

pub fn insert_external_call(&mut self, caller: Mfa, callee: Mfa)

Source

pub fn insert_unresolved(&mut self, site: UnresolvedCallSite)

Source

pub fn finish(self) -> CallGraph<M, Built>

Source§

impl<M: Mode> CallGraph<M, Built>

Source

pub fn modules(&self) -> impl Iterator<Item = (&ModuleName, &ModuleSummary)>

Source

pub fn module(&self, name: &ModuleName) -> Option<&ModuleSummary>

Source

pub fn def_at(&self, mfa: &Mfa) -> Option<&Loc>

Source

pub fn deprecation(&self, mfa: &Mfa) -> Option<&Deprecation>

Source

pub fn deprecated_mfas(&self) -> impl Iterator<Item = (&Mfa, &Deprecation)>

Source

pub fn on_load_functions(&self) -> &BTreeSet<Mfa>

Source

pub fn builtins(&self) -> &VertexSet

Source

pub fn module_edges(&self) -> &Relation

Source

pub fn application_edges(&self) -> &Relation

Source

pub fn behaviour_edges(&self) -> &Relation

Source

pub fn unresolved_calls(&self) -> &BTreeSet<UnresolvedCallSite>

Source

pub fn defined_functions(&self) -> VertexSet

Source§

impl CallGraph<Functions, Built>

Source

pub fn local_calls(&self) -> &Relation

Source

pub fn external_calls(&self) -> &Relation

Source

pub fn all_calls(&self) -> Relation

Trait Implementations§

Source§

impl<M: Clone + Mode, P: Clone + Phase> Clone for CallGraph<M, P>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<M: Debug + Mode, P: Debug + Phase> Debug for CallGraph<M, P>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<M: Mode> Default for CallGraph<M, Building>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<M, P> Forget for CallGraph<M, P>

§

impl<M, P> Freeze for CallGraph<M, P>

§

impl<M, P> Move for CallGraph<M, P>

§

impl<M, P> RefUnwindSafe for CallGraph<M, P>

§

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>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more