pub enum LossDirection {
Informational,
UnderReport,
OverReport,
Bail,
}Expand description
Direction of precision loss encoded by an EngineNote.
Variants are ordered by worsening credibility impact;
combine takes the max.
Variants§
Informational
Analysis converged; the note records a harmless event.
UnderReport
Analysis may have missed findings (worklist was capped). Reported findings remain sound, the result set is a lower bound.
OverReport
Analysis may have reported a spurious finding (e.g. predicate state widened to top, dropping a guard). Likely FP.
Bail
Analysis aborted before producing a trustworthy result. Treat the finding as a starting point, not a confirmed flow.
Implementations§
Source§impl LossDirection
impl LossDirection
Sourcepub fn combine(self, other: LossDirection) -> LossDirection
pub fn combine(self, other: LossDirection) -> LossDirection
Merge by taking the worse (later in Ord).
Trait Implementations§
Source§impl Clone for LossDirection
impl Clone for LossDirection
Source§fn clone(&self) -> LossDirection
fn clone(&self) -> LossDirection
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 LossDirection
impl Debug for LossDirection
Source§impl<'de> Deserialize<'de> for LossDirection
impl<'de> Deserialize<'de> for LossDirection
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for LossDirection
impl Hash for LossDirection
Source§impl Ord for LossDirection
impl Ord for LossDirection
Source§fn cmp(&self, other: &LossDirection) -> Ordering
fn cmp(&self, other: &LossDirection) -> 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 LossDirection
impl PartialEq for LossDirection
Source§impl PartialOrd for LossDirection
impl PartialOrd for LossDirection
Source§impl Serialize for LossDirection
impl Serialize for LossDirection
impl Copy for LossDirection
impl Eq for LossDirection
impl StructuralPartialEq for LossDirection
Auto Trait Implementations§
impl Freeze for LossDirection
impl RefUnwindSafe for LossDirection
impl Send for LossDirection
impl Sync for LossDirection
impl Unpin for LossDirection
impl UnsafeUnpin for LossDirection
impl UnwindSafe for LossDirection
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§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<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§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 more