Struct rust_code_analysis::halstead::Stats
source · pub struct Stats { /* private fields */ }
Expand description
The Halstead
metric suite.
Implementations§
source§impl Stats
impl Stats
sourcepub fn u_operators(&self) -> f64
pub fn u_operators(&self) -> f64
Returns η1
, the number of distinct operators
sourcepub fn u_operands(&self) -> f64
pub fn u_operands(&self) -> f64
Returns η2
, the number of distinct operands
sourcepub fn estimated_program_length(&self) -> f64
pub fn estimated_program_length(&self) -> f64
Returns the calculated estimated program length
sourcepub fn purity_ratio(&self) -> f64
pub fn purity_ratio(&self) -> f64
Returns the purity ratio
sourcepub fn vocabulary(&self) -> f64
pub fn vocabulary(&self) -> f64
Returns the program vocabulary
sourcepub fn difficulty(&self) -> f64
pub fn difficulty(&self) -> f64
Returns the estimated difficulty required to program