pub enum Confidence {
High,
Medium,
Low,
}Expand description
How far past the acceptance threshold a finding’s composite similarity sits.
It bands one number and says nothing beyond it. In particular it is not a prediction that the finding is worth acting on, and over hand-labelled real code it runs the other way: the shapes that are alike without being worth reporting — one routine per integer width, one accessor per variant — are alike almost exactly, so they land in the top band. The labelled corpora print the band’s measured precision beside this ordering rather than leaving the names to imply one.
Variants§
High
The two agree well clear of the threshold.
Medium
The two agree, with room between the score and the threshold.
Low
The two agree just past the threshold.
Implementations§
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
impl Eq for Confidence
Source§impl PartialEq for Confidence
impl PartialEq 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
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.