pub struct MetricInputs {}Expand description
Raw tier-1 counts a per-language engine measures for one unit (a file or, for
the functions level, a function). Every tier-2 metric is a pure function of
these, evaluated by the orchestrator’s built-in registry — see
code-ranker-graph’s metrics/builtin.toml.
Fields§
§eta1: f64Halstead base counts (η₁/η₂/N₁/N₂), as floats (counts are small integers).
eta2: f64§n1: f64§n2: f64§spaces: f64Structural counts.
branches: f64§cognitive: f64§exits: f64§args: f64§closures: f64§sloc: f64LOC breakdown.
lloc: f64§cloc: f64§blank: f64§tloc: f64§span_sloc: f64Unit span sloc (end_row − start_row) — an MI input, not emitted itself.
Trait Implementations§
Source§impl Clone for MetricInputs
impl Clone for MetricInputs
Source§fn clone(&self) -> MetricInputs
fn clone(&self) -> MetricInputs
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MetricInputs
impl Debug for MetricInputs
Source§impl Default for MetricInputs
impl Default for MetricInputs
Source§fn default() -> MetricInputs
fn default() -> MetricInputs
Returns the “default value” for a type. Read more
Source§impl PartialEq for MetricInputs
impl PartialEq for MetricInputs
Source§fn eq(&self, other: &MetricInputs) -> bool
fn eq(&self, other: &MetricInputs) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MetricInputs
Auto Trait Implementations§
impl Freeze for MetricInputs
impl RefUnwindSafe for MetricInputs
impl Send for MetricInputs
impl Sync for MetricInputs
impl Unpin for MetricInputs
impl UnsafeUnpin for MetricInputs
impl UnwindSafe for MetricInputs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more