pub struct Nargs {
pub function_args: u64,
pub closure_args: u64,
pub function_args_average: f64,
pub closure_args_average: f64,
pub total: u64,
pub value: u64,
pub average: f64,
pub function_args_min: u64,
pub function_args_max: u64,
pub closure_args_min: u64,
pub closure_args_max: u64,
}Expand description
Wire form of the NArgs metric.
Fields§
§function_args: u64Sum of function arguments.
closure_args: u64Sum of closure arguments.
function_args_average: f64Average function arguments per function.
closure_args_average: f64Average closure arguments per closure.
total: u64Total arguments (functions + closures).
value: u64This space’s own argument count — its function parameters plus
its closure parameters — excluding nested function/closure
spaces. Equals total only at a leaf space; at an
interior space total rolls up descendants while this stays the
per-space scalar the CLI thresholds nargs against (#1196,
#1236). #[serde(default)] so a document written before #1236
still deserializes through the public wire read-back path
STABILITY.md advertises. (bca diff is not that consumer — it
walks a raw serde_json::Value, see metric_diff.rs.)
average: f64Average arguments per function/closure.
function_args_min: u64Minimum function arguments in a single function.
function_args_max: u64Maximum function arguments in a single function.
closure_args_min: u64Minimum closure arguments in a single closure.
closure_args_max: u64Maximum closure arguments in a single closure.