pub struct ComplexityReport {Show 15 fields
pub total_functions: usize,
pub avg_function_length: f64,
pub max_function_length: usize,
pub avg_cyclomatic: f64,
pub max_cyclomatic: usize,
pub avg_cognitive: Option<f64>,
pub max_cognitive: Option<usize>,
pub avg_nesting_depth: Option<f64>,
pub max_nesting_depth: Option<usize>,
pub high_risk_files: usize,
pub histogram: Option<ComplexityHistogram>,
pub halstead: Option<HalsteadMetrics>,
pub maintainability_index: Option<MaintainabilityIndex>,
pub technical_debt: Option<TechnicalDebtRatio>,
pub files: Vec<FileComplexity>,
}Fields§
§total_functions: usize§avg_function_length: f64§max_function_length: usize§avg_cyclomatic: f64§max_cyclomatic: usize§avg_cognitive: Option<f64>Average cognitive complexity across files.
max_cognitive: Option<usize>Maximum cognitive complexity found.
avg_nesting_depth: Option<f64>Average nesting depth across files.
max_nesting_depth: Option<usize>Maximum nesting depth found.
high_risk_files: usize§histogram: Option<ComplexityHistogram>Histogram of cyclomatic complexity distribution.
halstead: Option<HalsteadMetrics>Halstead software science metrics (requires halstead feature).
maintainability_index: Option<MaintainabilityIndex>Composite maintainability index.
technical_debt: Option<TechnicalDebtRatio>Complexity-to-size debt heuristic.
files: Vec<FileComplexity>Trait Implementations§
Source§impl Clone for ComplexityReport
impl Clone for ComplexityReport
Source§fn clone(&self) -> ComplexityReport
fn clone(&self) -> ComplexityReport
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 ComplexityReport
impl Debug for ComplexityReport
Source§impl<'de> Deserialize<'de> for ComplexityReport
impl<'de> Deserialize<'de> for ComplexityReport
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 ComplexityReport
impl RefUnwindSafe for ComplexityReport
impl Send for ComplexityReport
impl Sync for ComplexityReport
impl Unpin for ComplexityReport
impl UnsafeUnpin for ComplexityReport
impl UnwindSafe for ComplexityReport
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