pub struct Stats { /* private fields */ }Expand description
The NExit metric.
This metric counts the number of possible exit points from a function/method.
Implementations§
Source§impl Stats
impl Stats
Sourcepub fn exit_min(&self) -> f64
pub fn exit_min(&self) -> f64
Returns the NExit metric minimum value.
Collapses the usize::MAX sentinel that Stats::default() plants
into exit_min to 0.0, so a never-observed space
serializes to a meaningful number rather than 1.8446744e19.
Sourcepub fn exit_average(&self) -> f64
pub fn exit_average(&self) -> f64
Returns the NExit metric average value
This value is computed dividing the NExit value
for the total number of functions/closures in a space.
If there are no functions in a code, its value is NAN.
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 UnsafeUnpin 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