pub struct FunctionCalls {
pub target: CallTarget,
pub member_path: Box<str>,
pub sites: Vec<CallSite>,
pub results: CallResultReads,
}Expand description
The direct calls of one callee: an admitted import binding with a member path, or a local function binding.
The extractor groups the sites per callee, so the target and the path are stored once. Optional calls, computed callees and calls through bindings that are not admitted are not stored.
Fields§
§target: CallTargetThe binding that the callee names.
member_path: Box<str>Dot-separated static member suffix after an import binding, empty for a bare call. Always empty for a local target.
For a namespace import, the first segment is the export name. For a
named or default import of a function, a non-empty path, for example
call, apply or bind, is not a plain call of the function, so a
consumer must treat the function as open for that site.
sites: Vec<CallSite>Each call of this callee, in source order. Never empty.
results: CallResultReadsThe uses of the results of the sites whose result the code uses.
Trait Implementations§
Source§impl Clone for FunctionCalls
impl Clone for FunctionCalls
Source§impl Debug for FunctionCalls
impl Debug for FunctionCalls
impl<'__de> Decode<'__de> for FunctionCallswhere
'__de:,
impl Encode for FunctionCalls
impl Eq for FunctionCalls
Source§impl PartialEq for FunctionCalls
impl PartialEq for FunctionCalls
impl StructuralPartialEq for FunctionCalls
Auto Trait Implementations§
impl Forget for FunctionCalls
impl Freeze for FunctionCalls
impl Move for FunctionCalls
impl RefUnwindSafe for FunctionCalls
impl Send for FunctionCalls
impl Sync for FunctionCalls
impl Unpin for FunctionCalls
impl UnsafeUnpin for FunctionCalls
impl UnwindSafe for FunctionCalls
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DecodeOwned for Twhere
T: for<'de> Decode<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.