pub struct Stats { /* private fields */ }
Expand description
The Nom
metric suite.
Implementations§
Source§impl Stats
impl Stats
Sourcepub fn functions_sum(&self) -> f64
pub fn functions_sum(&self) -> f64
Return the sum metric for functions
Sourcepub fn closures_sum(&self) -> f64
pub fn closures_sum(&self) -> f64
Return the sum metric for closures
Sourcepub fn functions_average(&self) -> f64
pub fn functions_average(&self) -> f64
Returns the average number of function definitions over all spaces
Sourcepub fn closures_average(&self) -> f64
pub fn closures_average(&self) -> f64
Returns the average number of closures over all spaces
Sourcepub fn average(&self) -> f64
pub fn average(&self) -> f64
Returns the average number of function definitions and closures over all spaces
Sourcepub fn functions_min(&self) -> f64
pub fn functions_min(&self) -> f64
Counts the number of function definitions in a scope
Sourcepub fn closures_min(&self) -> f64
pub fn closures_min(&self) -> f64
Counts the number of closures in a scope
Sourcepub fn functions_max(&self) -> f64
pub fn functions_max(&self) -> f64
Counts the number of function definitions in a scope
Sourcepub fn closures_max(&self) -> f64
pub fn closures_max(&self) -> f64
Counts the number of closures in a scope
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