pub struct NumericCoverage {
pub min_value: f64,
pub max_value: f64,
pub total_count: usize,
pub range_distribution: HashMap<String, usize>,
pub statistics: NumericStatistics,
}Expand description
Coverage tracking for numeric types
Fields§
§min_value: f64Minimum value generated
max_value: f64Maximum value generated
total_count: usizeTotal count of values generated
range_distribution: HashMap<String, usize>Distribution across ranges (range_start -> count)
statistics: NumericStatisticsStatistical moments (mean, variance, etc.)
Implementations§
Source§impl NumericCoverage
impl NumericCoverage
Sourcepub fn record_value(&mut self, value: f64)
pub fn record_value(&mut self, value: f64)
Record a numeric value
Sourcepub fn get_range_coverage(&self, min: f64, max: f64) -> f64
pub fn get_range_coverage(&self, min: f64, max: f64) -> f64
Get coverage percentage for a specific range
Trait Implementations§
Source§impl Clone for NumericCoverage
impl Clone for NumericCoverage
Source§fn clone(&self) -> NumericCoverage
fn clone(&self) -> NumericCoverage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NumericCoverage
impl Debug for NumericCoverage
Auto Trait Implementations§
impl Freeze for NumericCoverage
impl RefUnwindSafe for NumericCoverage
impl Send for NumericCoverage
impl Sync for NumericCoverage
impl Unpin for NumericCoverage
impl UnwindSafe for NumericCoverage
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