pub struct Stats { /* private fields */ }Expand description
The Loc metric suite.
Implementations§
Source§impl Stats
impl Stats
Sourcepub fn sloc_average(&self) -> f64
pub fn sloc_average(&self) -> f64
The Sloc metric average value.
This value is computed dividing the Sloc value for the number of spaces
Sourcepub fn ploc_average(&self) -> f64
pub fn ploc_average(&self) -> f64
The Ploc metric average value.
This value is computed dividing the Ploc value for the number of spaces
Sourcepub fn lloc_average(&self) -> f64
pub fn lloc_average(&self) -> f64
The Lloc metric average value.
This value is computed dividing the Lloc value for the number of spaces
Sourcepub fn cloc_average(&self) -> f64
pub fn cloc_average(&self) -> f64
The Cloc metric average value.
This value is computed dividing the Cloc value for the number of spaces
Sourcepub fn blank_average(&self) -> f64
pub fn blank_average(&self) -> f64
The Blank metric average value.
This value is computed dividing the Blank value for the number of spaces
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