pub enum Verdict {
Unavailable,
Insufficient,
Certified,
}Expand description
The conservative verdict ladder shared by every certificate.
The ordering is a soundness lattice, weakest → strongest:
Unavailable < Insufficient < Certified. A verdict may only move UP this
ladder as evidence accrues; it can never claim more than the evidence
supports. The weakest state (Verdict::Unavailable) is the default, so a
certificate that was never computed, or whose inputs were degenerate, reads
as “no claim” — never as a silent pass. This is what makes
“certified-but-wrong” structurally impossible: Certified is reachable only
when the owning certificate’s own (unchanged) decision rule says the
evidence strictly clears its required margin.
Variants§
The certificate could not be evaluated: inputs were missing, degenerate,
or non-finite. No claim is made. This is the default — the absence of a
certificate is this state, not Certified.
Insufficient
The certificate was evaluated and the evidence is present, but it does NOT clear the margin required to certify the claim. The consumer must escalate (refine, gather more evidence, or fall back to the exact path); it must NOT treat this as a pass.
Certified
The evidence strictly clears the claim’s required margin. The claim holds — and, by construction of each owning decision rule, the conservative (worst-case) bound was used, so this verdict cannot be falsely positive.
Implementations§
Source§impl Verdict
impl Verdict
Sourcepub fn is_certified(self) -> bool
pub fn is_certified(self) -> bool
Whether the claim is certified. The ONLY true case is
Verdict::Certified; Insufficient and Unavailable are both false
so no caller can read a missing or below-margin certificate as a pass.
Sourcepub fn meet(self, other: Verdict) -> Verdict
pub fn meet(self, other: Verdict) -> Verdict
Combine two verdicts about the SAME claim conservatively: the result is the WEAKER of the two (the meet on the soundness lattice). Aggregating a batch of per-item verdicts this way guarantees the summary can never be stronger than its weakest member — one uncertified row makes the batch uncertified.
Trait Implementations§
impl Copy for Verdict
impl Eq for Verdict
Source§impl Ord for Verdict
impl Ord for Verdict
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialOrd for Verdict
impl PartialOrd for Verdict
impl StructuralPartialEq for Verdict
Auto Trait Implementations§
impl Freeze for Verdict
impl RefUnwindSafe for Verdict
impl Send for Verdict
impl Sync for Verdict
impl Unpin for Verdict
impl UnsafeUnpin for Verdict
impl UnwindSafe for Verdict
Blanket Implementations§
impl<T> Boilerplate for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T, U> Imply<T> for U
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>
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>
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
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.