Struct rust_code_analysis::nom::Stats
source · pub struct Stats { /* private fields */ }
Expand description
The Nom
metric suite.
Implementations§
source§impl Stats
impl Stats
sourcepub fn functions_sum(&self) -> f64
pub fn functions_sum(&self) -> f64
Return the sum metric for functions
sourcepub fn closures_sum(&self) -> f64
pub fn closures_sum(&self) -> f64
Return the sum metric for closures
sourcepub fn functions_average(&self) -> f64
pub fn functions_average(&self) -> f64
Returns the average number of function definitions over all spaces
sourcepub fn closures_average(&self) -> f64
pub fn closures_average(&self) -> f64
Returns the average number of closures over all spaces
sourcepub fn average(&self) -> f64
pub fn average(&self) -> f64
Returns the average number of function definitions and closures over all spaces
sourcepub fn functions_min(&self) -> f64
pub fn functions_min(&self) -> f64
Counts the number of function definitions in a scope
sourcepub fn closures_min(&self) -> f64
pub fn closures_min(&self) -> f64
Counts the number of closures in a scope
sourcepub fn functions_max(&self) -> f64
pub fn functions_max(&self) -> f64
Counts the number of function definitions in a scope
sourcepub fn closures_max(&self) -> f64
pub fn closures_max(&self) -> f64
Counts the number of closures in a scope