pub struct Confidence(/* private fields */);Expand description
Evidence strength behind a match, in named tiers (see the TIER_*
constants and the crate-root confidence model).
The score is set once by the prober that produced the candidate; the
harness only compares them. A higher value is stronger evidence. The value
is opaque; read it with Confidence::as_u8.
Implementations§
Source§impl Confidence
impl Confidence
Source§impl Confidence
The named tiers, exposed for tests. A prober assigns one of these (e.g.
Confidence::LATTICE_STRONG).
impl Confidence
The named tiers, exposed for tests. A prober assigns one of these (e.g.
Confidence::LATTICE_STRONG).
Sourcepub const CERTAIN: Confidence
pub const CERTAIN: Confidence
Unambiguous magic plus a structural confirmation (240).
Sourcepub const STRONG: Confidence
pub const STRONG: Confidence
Unambiguous magic at a defined offset only (192).
Sourcepub const STRUCTURAL: Confidence
pub const STRUCTURAL: Confidence
A validated structure chain (160).
Sourcepub const LATTICE_STRONG: Confidence
pub const LATTICE_STRONG: Confidence
>= 8 lattice confirmations at a consistent stride (128).
Sourcepub const LATTICE_WEAK: Confidence
pub const LATTICE_WEAK: Confidence
3-7 lattice confirmations (96).
Sourcepub const HEURISTIC: Confidence
pub const HEURISTIC: Confidence
A signature with meaningful false-positive probability (64).
Trait Implementations§
Source§impl Clone for Confidence
impl Clone for Confidence
Source§fn clone(&self) -> Confidence
fn clone(&self) -> Confidence
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 moreimpl Copy for Confidence
Source§impl Debug for Confidence
impl Debug for Confidence
Source§impl Display for Confidence
impl Display for Confidence
impl Eq for Confidence
Source§impl Ord for Confidence
impl Ord for Confidence
Source§fn cmp(&self, other: &Confidence) -> Ordering
fn cmp(&self, other: &Confidence) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for Confidence
impl PartialEq for Confidence
Source§impl PartialOrd for Confidence
impl PartialOrd for Confidence
impl StructuralPartialEq for Confidence
Auto Trait Implementations§
impl Freeze for Confidence
impl RefUnwindSafe for Confidence
impl Send for Confidence
impl Sync for Confidence
impl Unpin for Confidence
impl UnsafeUnpin for Confidence
impl UnwindSafe for Confidence
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