pub struct CognitiveComplexityStats {
pub total_cognitive_complexity: u32,
pub average_cognitive_complexity: f64,
pub max_cognitive_complexity: u32,
pub most_complex_function: Option<String>,
pub functions_analyzed: usize,
}Expand description
Cognitive complexity statistics
Fields§
§total_cognitive_complexity: u32Total cognitive complexity across all functions
average_cognitive_complexity: f64Average cognitive complexity per function
max_cognitive_complexity: u32Maximum cognitive complexity in a single function
most_complex_function: Option<String>Function with highest cognitive complexity
functions_analyzed: usizeNumber of functions analyzed
Trait Implementations§
Source§impl Clone for CognitiveComplexityStats
impl Clone for CognitiveComplexityStats
Source§fn clone(&self) -> CognitiveComplexityStats
fn clone(&self) -> CognitiveComplexityStats
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 CognitiveComplexityStats
impl Debug for CognitiveComplexityStats
Source§impl Default for CognitiveComplexityStats
impl Default for CognitiveComplexityStats
Source§fn default() -> CognitiveComplexityStats
fn default() -> CognitiveComplexityStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CognitiveComplexityStats
impl RefUnwindSafe for CognitiveComplexityStats
impl Send for CognitiveComplexityStats
impl Sync for CognitiveComplexityStats
impl Unpin for CognitiveComplexityStats
impl UnwindSafe for CognitiveComplexityStats
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