pub struct ProjectInfo {
pub files: Vec<FileInfo>,
pub total_functions: usize,
pub total_classes: usize,
pub total_parse_time: Duration,
pub failed_files: Vec<(PathBuf, String)>,
}Expand description
Aggregate information about a parsed project
Fields§
§files: Vec<FileInfo>Information about each successfully parsed file
total_functions: usizeTotal number of functions across all files
total_classes: usizeTotal number of classes across all files
total_parse_time: DurationTotal parse time for all files
failed_files: Vec<(PathBuf, String)>Files that failed to parse (path, error message)
Implementations§
Source§impl ProjectInfo
impl ProjectInfo
Sourcepub fn total_files(&self) -> usize
pub fn total_files(&self) -> usize
Total number of files processed (success + failure)
Sourcepub fn success_rate(&self) -> f64
pub fn success_rate(&self) -> f64
Success rate (0.0 to 1.0)
Sourcepub fn avg_parse_time(&self) -> Duration
pub fn avg_parse_time(&self) -> Duration
Average parse time per file
Trait Implementations§
Source§impl Clone for ProjectInfo
impl Clone for ProjectInfo
Source§fn clone(&self) -> ProjectInfo
fn clone(&self) -> ProjectInfo
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProjectInfo
impl Debug for ProjectInfo
Source§impl<'de> Deserialize<'de> for ProjectInfo
impl<'de> Deserialize<'de> for ProjectInfo
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
Source§impl PartialEq for ProjectInfo
impl PartialEq for ProjectInfo
Source§impl Serialize for ProjectInfo
impl Serialize for ProjectInfo
impl StructuralPartialEq for ProjectInfo
Auto Trait Implementations§
impl Freeze for ProjectInfo
impl RefUnwindSafe for ProjectInfo
impl Send for ProjectInfo
impl Sync for ProjectInfo
impl Unpin for ProjectInfo
impl UnwindSafe for ProjectInfo
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)