pub struct ParsedFunction {
pub name: String,
pub line: usize,
pub calls: Vec<CallSite>,
pub is_build_script: bool,
}Expand description
A single function (free, impl method, or trait default method) and its call sites.
Fields§
§name: StringThe function name (e.g., "load_config").
line: usizeLine number where the function is defined.
calls: Vec<CallSite>Every call expression found inside the function body.
is_build_script: boolTrue if this is the main() function inside a build.rs file.
Trait Implementations§
Source§impl Clone for ParsedFunction
impl Clone for ParsedFunction
Source§fn clone(&self) -> ParsedFunction
fn clone(&self) -> ParsedFunction
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 moreAuto Trait Implementations§
impl Freeze for ParsedFunction
impl RefUnwindSafe for ParsedFunction
impl Send for ParsedFunction
impl Sync for ParsedFunction
impl Unpin for ParsedFunction
impl UnsafeUnpin for ParsedFunction
impl UnwindSafe for ParsedFunction
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