pub struct CallerSite {
pub caller_file: PathBuf,
pub caller_symbol: String,
pub line: u32,
pub col: u32,
pub resolved: bool,
}Expand description
A single caller site: who calls a given symbol and from where.
Fields§
§caller_file: PathBufFile containing the caller.
caller_symbol: StringSymbol that makes the call.
line: u320-based line number of the call.
col: u320-based column (byte start within file, kept for future use).
resolved: boolWhether the edge was resolved via import chain.
Trait Implementations§
Source§impl Clone for CallerSite
impl Clone for CallerSite
Source§fn clone(&self) -> CallerSite
fn clone(&self) -> CallerSite
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CallerSite
impl Debug for CallerSite
Auto Trait Implementations§
impl Freeze for CallerSite
impl RefUnwindSafe for CallerSite
impl Send for CallerSite
impl Sync for CallerSite
impl Unpin for CallerSite
impl UnsafeUnpin for CallerSite
impl UnwindSafe for CallerSite
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more