Struct rust_code_analysis::cognitive::Stats [−][src]
pub struct Stats { /* fields omitted */ }
Expand description
The Cognitive Complexity
metric.
Implementations
Merges a second Cognitive Complexity
metric into the first one
Returns the Cognitive Complexity
sum metric value
Returns the Cognitive Complexity
minimum metric value
Returns the Cognitive Complexity
maximum metric value
Returns the Cognitive Complexity
metric average value
This value is computed dividing the Cognitive Complexity
value
for the total number of functions/closures in a space.
If there are no functions in a code, its value is NAN
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Stats
impl UnwindSafe for Stats
Blanket Implementations
Mutably borrows from an owned value. Read more