pub struct Stats { /* private fields */ }
Expand description
The Cyclomatic
metric.
Implementations§
Source§impl Stats
impl Stats
Sourcepub fn cyclomatic(&self) -> f64
pub fn cyclomatic(&self) -> f64
Returns the Cyclomatic
metric value
Sourcepub fn cyclomatic_sum(&self) -> f64
pub fn cyclomatic_sum(&self) -> f64
Returns the sum
Sourcepub fn cyclomatic_average(&self) -> f64
pub fn cyclomatic_average(&self) -> f64
Returns the Cyclomatic
metric average value
This value is computed dividing the Cyclomatic
value for the
number of spaces.
Sourcepub fn cyclomatic_max(&self) -> f64
pub fn cyclomatic_max(&self) -> f64
Returns the Cyclomatic
maximum value
Sourcepub fn cyclomatic_min(&self) -> f64
pub fn cyclomatic_min(&self) -> f64
Returns the Cyclomatic
minimum value
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