pub struct Abc {Show 14 fields
pub assignments: u64,
pub branches: u64,
pub conditions: u64,
pub magnitude: f64,
pub value: f64,
pub assignments_average: f64,
pub branches_average: f64,
pub conditions_average: f64,
pub assignments_min: u64,
pub assignments_max: u64,
pub branches_min: u64,
pub branches_max: u64,
pub conditions_min: u64,
pub conditions_max: u64,
}Expand description
Wire form of the Abc metric.
Fields§
§assignments: u64Sum of assignments across the space.
branches: u64Sum of branches across the space.
conditions: u64Sum of conditions across the space.
magnitude: f64Euclidean ABC magnitude across the space (built from the summed assignment/branch/condition accumulators).
value: f64This space’s own ABC magnitude — sqrt(A² + B² + C²) over just
this space’s assignments/branches/conditions, excluding nested
function/closure spaces. Equals magnitude
only at a leaf space; it is the per-space scalar the CLI
thresholds abc against (#958). Absent pre-#958 JSON
deserializes to NaN via nan_default.
assignments_average: f64Average assignments per space.
branches_average: f64Average branches per space.
conditions_average: f64Average conditions per space.
assignments_min: u64Minimum assignments in a single space.
assignments_max: u64Maximum assignments in a single space.
branches_min: u64Minimum branches in a single space.
branches_max: u64Maximum branches in a single space.
conditions_min: u64Minimum conditions in a single space.
conditions_max: u64Maximum conditions in a single space.