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 Forget for StrengthConfig
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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.
Creates a shared type from an unshared type.