#[non_exhaustive]pub struct ConfidenceOptions {
pub medium_score_threshold: u8,
pub high_score_threshold: u8,
pub ambiguity_min_score: u8,
pub ambiguity_score_gap: u8,
}Expand description
Confidence-bucket and ambiguity-warning score thresholds.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.medium_score_threshold: u8Minimum suspect score treated as medium confidence.
high_score_threshold: u8Minimum suspect score treated as high confidence.
ambiguity_min_score: u8Minimum top-suspect score before ambiguity heuristics may emit a warning.
ambiguity_score_gap: u8Maximum score gap considered a near-tie for ambiguity warning heuristics.
Trait Implementations§
Source§impl Clone for ConfidenceOptions
impl Clone for ConfidenceOptions
Source§fn clone(&self) -> ConfidenceOptions
fn clone(&self) -> ConfidenceOptions
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 ConfidenceOptions
impl Debug for ConfidenceOptions
Source§impl Default for ConfidenceOptions
impl Default for ConfidenceOptions
impl Eq for ConfidenceOptions
Source§impl PartialEq for ConfidenceOptions
impl PartialEq for ConfidenceOptions
Source§fn eq(&self, other: &ConfidenceOptions) -> bool
fn eq(&self, other: &ConfidenceOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ConfidenceOptions
impl Serialize for ConfidenceOptions
impl StructuralPartialEq for ConfidenceOptions
Auto Trait Implementations§
impl Freeze for ConfidenceOptions
impl RefUnwindSafe for ConfidenceOptions
impl Send for ConfidenceOptions
impl Sync for ConfidenceOptions
impl Unpin for ConfidenceOptions
impl UnsafeUnpin for ConfidenceOptions
impl UnwindSafe for ConfidenceOptions
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
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§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.