pub struct CallSite {
pub segments: Vec<String>,
pub line: usize,
pub col: usize,
pub kind: CallKind,
}Expand description
A single call expression inside a function body.
Call sites are either qualified function calls (fs::read(...)) or method calls
(stream.connect(...)). The segments field holds the
raw path segments before import expansion.
Fields§
§segments: Vec<String>Path segments of the call (e.g., ["fs", "read"] or ["TcpStream", "connect"]).
line: usizeSource line number.
col: usizeSource column number.
kind: CallKindWhether this is a function call or a method call.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CallSite
impl RefUnwindSafe for CallSite
impl Send for CallSite
impl Sync for CallSite
impl Unpin for CallSite
impl UnsafeUnpin for CallSite
impl UnwindSafe for CallSite
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