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
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Stats
impl RefUnwindSafe for Stats
impl Send for Stats
impl Sync for Stats
impl Unpin for Stats
impl UnwindSafe for Stats
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