pub struct RustAnalysis {
pub file_path: String,
pub modules: Vec<ModuleInfo>,
pub functions: Vec<FunctionInfo>,
pub structs: Vec<StructInfo>,
pub enums: Vec<EnumInfo>,
pub implementations: Vec<ImplInfo>,
pub ast_summary: String,
}Expand description
Complete analysis result for a single Rust source file.
Contains all structural information extracted from parsing the file’s AST, including modules, functions, structs, enums, and implementations.
Fields§
§file_path: StringPath to the analyzed file.
modules: Vec<ModuleInfo>List of modules defined in the file.
functions: Vec<FunctionInfo>List of functions defined in the file.
structs: Vec<StructInfo>List of structs defined in the file.
enums: Vec<EnumInfo>List of enums defined in the file.
implementations: Vec<ImplInfo>List of impl blocks defined in the file.
ast_summary: StringSummary of the AST structure.
Trait Implementations§
Source§impl Clone for RustAnalysis
impl Clone for RustAnalysis
Source§fn clone(&self) -> RustAnalysis
fn clone(&self) -> RustAnalysis
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 RustAnalysis
impl Debug for RustAnalysis
Source§impl<'de> Deserialize<'de> for RustAnalysis
impl<'de> Deserialize<'de> for RustAnalysis
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RustAnalysis
impl RefUnwindSafe for RustAnalysis
impl Send for RustAnalysis
impl Sync for RustAnalysis
impl Unpin for RustAnalysis
impl UnwindSafe for RustAnalysis
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