Struct rust_code_analysis::nargs::Stats
source · pub struct Stats { /* private fields */ }
Expand description
The NArgs
metric.
This metric counts the number of arguments of functions/closures.
Implementations§
source§impl Stats
impl Stats
sourcepub fn closure_args(&self) -> f64
pub fn closure_args(&self) -> f64
Returns the number of closure arguments in a space.
sourcepub fn fn_args_sum(&self) -> f64
pub fn fn_args_sum(&self) -> f64
Returns the number of function arguments sum in a space.
sourcepub fn closure_args_sum(&self) -> f64
pub fn closure_args_sum(&self) -> f64
Returns the number of closure arguments sum in a space.
sourcepub fn fn_args_average(&self) -> f64
pub fn fn_args_average(&self) -> f64
Returns the average number of functions arguments in a space.
sourcepub fn closure_args_average(&self) -> f64
pub fn closure_args_average(&self) -> f64
Returns the average number of closures arguments in a space.
sourcepub fn nargs_total(&self) -> f64
pub fn nargs_total(&self) -> f64
Returns the total number of arguments of each function and closure in a space.
sourcepub fn nargs_average(&self) -> f64
pub fn nargs_average(&self) -> f64
Returns the NArgs
metric average value
This value is computed dividing the NArgs
value
for the total number of functions/closures in a space.
sourcepub fn fn_args_min(&self) -> f64
pub fn fn_args_min(&self) -> f64
Returns the minimum number of function arguments in a space.
sourcepub fn fn_args_max(&self) -> f64
pub fn fn_args_max(&self) -> f64
Returns the maximum number of function arguments in a space.
sourcepub fn closure_args_min(&self) -> f64
pub fn closure_args_min(&self) -> f64
Returns the minimum number of closure arguments in a space.
sourcepub fn closure_args_max(&self) -> f64
pub fn closure_args_max(&self) -> f64
Returns the maximum number of closure arguments in a space.