pub struct CallSites {
pub file: String,
pub symbols: Vec<String>,
pub lines: Vec<u32>,
pub sites: usize,
}Expand description
Everywhere one file calls the target.
A CALLS edge says which symbol calls another, one edge however many
times the call is written. That answers “who calls this” and cannot answer
“where is it called”: a function called twelve times from six others looked
like six call sites. The lines come from the caller’s call_lines, which
records every site, so this is the whole list.
Fields§
§file: StringThe file the calling symbols are defined in.
symbols: Vec<String>The calling symbols, by key, sorted.
lines: Vec<u32>Lines of file a call sits on, ascending, at most
[MAX_SITES_PER_FILE] of them. sites is the true total either way, so
a reader can always tell a short list from a truncated one.
sites: usizeCall sites in file, including any the lines cap left out.
Trait Implementations§
impl Eq for CallSites
impl StructuralPartialEq for CallSites
Auto Trait Implementations§
impl Freeze for CallSites
impl RefUnwindSafe for CallSites
impl Send for CallSites
impl Sync for CallSites
impl Unpin for CallSites
impl UnsafeUnpin for CallSites
impl UnwindSafe for CallSites
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Returns whether the given value has been niched. Read more
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
Writes data to
out indicating that a T is niched.