pub struct StrengthConfig {
pub enabled: bool,
pub min: Option<f64>,
pub near_miss: u32,
pub permitted: u32,
pub timeout: Duration,
}Expand description
How the acceptance set’s strength is measured: [acceptance]
strength, min_strength, near_miss, permitted,
strength_timeout_secs.
Fields§
§enabled: boolMeasure after every verified verdict (default on).
min: Option<f64>The gate; None (default): strength never changes a verdict.
near_miss: u32Wrong variants asked for (0–3, default 2).
permitted: u32Spec-permitted alternatives asked for (0–2, default 1; 0: no over-strict check).
timeout: DurationThe whole stage’s budget.
Trait Implementations§
Source§impl Clone for StrengthConfig
impl Clone for StrengthConfig
Source§impl Debug for StrengthConfig
impl Debug for StrengthConfig
Source§impl Default for StrengthConfig
impl Default for StrengthConfig
impl Eq for StrengthConfig
Source§impl PartialEq for StrengthConfig
impl PartialEq for StrengthConfig
impl StructuralPartialEq for StrengthConfig
Auto Trait Implementations§
impl Freeze for StrengthConfig
impl RefUnwindSafe for StrengthConfig
impl Send for StrengthConfig
impl Sync for StrengthConfig
impl Unpin for StrengthConfig
impl UnsafeUnpin for StrengthConfig
impl UnwindSafe for StrengthConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.