pub enum ConfidenceLevel {
Info,
Suspicious,
Critical,
}Expand description
Type-safe confidence classification derived from structural validation
and ML ensemble scoring. Ord derivation guarantees: Info < Suspicious < Critical.
A match on this enum is exhaustive — the compiler prevents treating Info as Critical.
Variants§
Implementations§
Source§impl ConfidenceLevel
impl ConfidenceLevel
Sourcepub fn from_score(score: f32) -> Self
pub fn from_score(score: f32) -> Self
Derive level from a numeric confidence score.
Trait Implementations§
Source§impl Clone for ConfidenceLevel
impl Clone for ConfidenceLevel
Source§fn clone(&self) -> ConfidenceLevel
fn clone(&self) -> ConfidenceLevel
Returns a duplicate of the value. Read more
1.0.0 · 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 ConfidenceLevel
impl Debug for ConfidenceLevel
Source§impl Display for ConfidenceLevel
impl Display for ConfidenceLevel
Source§impl Ord for ConfidenceLevel
impl Ord for ConfidenceLevel
Source§fn cmp(&self, other: &ConfidenceLevel) -> Ordering
fn cmp(&self, other: &ConfidenceLevel) -> Ordering
1.21.0 · 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 ConfidenceLevel
impl PartialEq for ConfidenceLevel
Source§impl PartialOrd for ConfidenceLevel
impl PartialOrd for ConfidenceLevel
Source§impl Serialize for ConfidenceLevel
impl Serialize for ConfidenceLevel
impl Copy for ConfidenceLevel
impl Eq for ConfidenceLevel
impl StructuralPartialEq for ConfidenceLevel
Auto Trait Implementations§
impl Freeze for ConfidenceLevel
impl RefUnwindSafe for ConfidenceLevel
impl Send for ConfidenceLevel
impl Sync for ConfidenceLevel
impl Unpin for ConfidenceLevel
impl UnsafeUnpin for ConfidenceLevel
impl UnwindSafe for ConfidenceLevel
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> Comparable<K> for Q
impl<Q, K> Comparable<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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> Pointable for T
impl<T> Pointable for T
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more