pub struct Summary {
pub file_count: usize,
pub function_count: usize,
pub parse_error_count: usize,
pub parse_error_file_count: usize,
pub parse_error_files: Vec<String>,
pub cognitive: MetricSummary,
pub cyclomatic: MetricSummary,
}Expand description
Project-wide rollup across every function in every file.
Fields§
§file_count: usize§function_count: usize§parse_error_count: usizeTotal parse errors across all files. Parsers are fault-tolerant where possible, so a non-zero count means some code was measured from a partial parse (or, for non-recovering parsers, skipped entirely).
parse_error_file_count: usizeNumber of files that had at least one parse error.
parse_error_files: Vec<String>Paths of the files that had parse errors, in report order. Lets a
consumer locate the affected files without scanning every entry in
files (which the --top-* output doesn’t even include).
cognitive: MetricSummary§cyclomatic: MetricSummaryTrait Implementations§
Auto Trait Implementations§
impl Forget for Summary
impl Freeze for Summary
impl RefUnwindSafe for Summary
impl Send for Summary
impl Sync for Summary
impl Unpin for Summary
impl UnsafeUnpin for Summary
impl UnwindSafe for Summary
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