pub struct ParsedFile {
pub path: String,
pub functions: Vec<ParsedFunction>,
pub use_imports: Vec<ImportPath>,
pub extern_blocks: Vec<ExternBlock>,
}Expand description
The parsed representation of a single .rs source file.
Contains every function body, use import, and extern block found in the file.
This is the input to Detector::analyse.
Fields§
§path: StringFile path (for reporting).
functions: Vec<ParsedFunction>All functions found: free functions, impl methods, and trait default methods.
use_imports: Vec<ImportPath>All use imports, with aliases tracked.
extern_blocks: Vec<ExternBlock>All extern blocks (FFI declarations).
Trait Implementations§
Source§impl Clone for ParsedFile
impl Clone for ParsedFile
Source§fn clone(&self) -> ParsedFile
fn clone(&self) -> ParsedFile
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 ParsedFile
impl RefUnwindSafe for ParsedFile
impl Send for ParsedFile
impl Sync for ParsedFile
impl Unpin for ParsedFile
impl UnsafeUnpin for ParsedFile
impl UnwindSafe for ParsedFile
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