pub struct FileReport {
pub path: String,
pub cognitive: u32,
pub cyclomatic: u32,
pub functions: Vec<FunctionReport>,
pub parse_errors: Vec<String>,
}Expand description
Aggregated metrics for a single source file.
Fields§
§path: String§cognitive: u32File total = module-level code + every function (all nesting depths).
cyclomatic: u32§functions: Vec<FunctionReport>§parse_errors: Vec<String>Trait Implementations§
Source§impl Clone for FileReport
impl Clone for FileReport
Source§fn clone(&self) -> FileReport
fn clone(&self) -> FileReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FileReport
impl Debug for FileReport
Auto Trait Implementations§
impl Freeze for FileReport
impl RefUnwindSafe for FileReport
impl Send for FileReport
impl Sync for FileReport
impl Unpin for FileReport
impl UnsafeUnpin for FileReport
impl UnwindSafe for FileReport
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