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.