pub enum CoverageThreshold {
MinLinePct(f64),
MinFunctionPct(f64),
MinRegionPct(f64),
}Expand description
Threshold defining the minimum acceptable coverage.
Variants§
MinLinePct(f64)
Fail when line_pct is below the given percentage.
MinFunctionPct(f64)
Fail when function_pct is below the given percentage.
MinRegionPct(f64)
Fail when region_pct is below the given percentage.
Implementations§
Source§impl CoverageThreshold
impl CoverageThreshold
Sourcepub fn min_line_pct(pct: f64) -> Self
pub fn min_line_pct(pct: f64) -> Self
Build a line-coverage threshold.
Sourcepub fn min_function_pct(pct: f64) -> Self
pub fn min_function_pct(pct: f64) -> Self
Build a function-coverage threshold.
Sourcepub fn min_region_pct(pct: f64) -> Self
pub fn min_region_pct(pct: f64) -> Self
Build a region-coverage threshold.
Trait Implementations§
Source§impl Clone for CoverageThreshold
impl Clone for CoverageThreshold
Source§fn clone(&self) -> CoverageThreshold
fn clone(&self) -> CoverageThreshold
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CoverageThreshold
impl Debug for CoverageThreshold
impl Copy for CoverageThreshold
Auto Trait Implementations§
impl Freeze for CoverageThreshold
impl RefUnwindSafe for CoverageThreshold
impl Send for CoverageThreshold
impl Sync for CoverageThreshold
impl Unpin for CoverageThreshold
impl UnsafeUnpin for CoverageThreshold
impl UnwindSafe for CoverageThreshold
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