pub struct ChangeThresholds { /* private fields */ }Expand description
Ratio thresholds controlling change indicators.
Ratios are calculated as baseline time / candidate time and classified as
regression, neutral, improvement, or strong improvement.
Implementations§
Source§impl ChangeThresholds
impl ChangeThresholds
Sourcepub fn improvement_ratio(self, ratio: f64) -> Self
pub fn improvement_ratio(self, ratio: f64) -> Self
Sets the minimum ratio rendered as an improvement. Defaults to 1.1.
Sourcepub fn strong_improvement_ratio(self, ratio: f64) -> Self
pub fn strong_improvement_ratio(self, ratio: f64) -> Self
Sets the minimum ratio rendered as a strong improvement. Defaults to 1.8.
Sourcepub fn regression_ratio(self, ratio: f64) -> Self
pub fn regression_ratio(self, ratio: f64) -> Self
Sets the maximum ratio rendered as a regression. Defaults to 0.9.
Trait Implementations§
Source§impl Clone for ChangeThresholds
impl Clone for ChangeThresholds
impl Copy for ChangeThresholds
Source§impl Debug for ChangeThresholds
impl Debug for ChangeThresholds
Auto Trait Implementations§
impl Freeze for ChangeThresholds
impl RefUnwindSafe for ChangeThresholds
impl Send for ChangeThresholds
impl Sync for ChangeThresholds
impl Unpin for ChangeThresholds
impl UnsafeUnpin for ChangeThresholds
impl UnwindSafe for ChangeThresholds
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