pub enum DischargeOutcome {
Proved,
Refuted {
reason: String,
},
Deferred {
reason: String,
},
}Variants§
Proved
Predicate evaluated to true with the binding bound to the
argument value. Static check succeeds; no runtime work.
Refuted
Predicate evaluated to false. The call-site argument
definitely violates the refinement — surface as a type error.
Deferred
Couldn’t decide statically. Slice 3 will emit a residual runtime check at the call boundary; this slice just lets type-check pass.
Trait Implementations§
Source§impl Clone for DischargeOutcome
impl Clone for DischargeOutcome
Source§fn clone(&self) -> DischargeOutcome
fn clone(&self) -> DischargeOutcome
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 moreSource§impl Debug for DischargeOutcome
impl Debug for DischargeOutcome
Source§impl PartialEq for DischargeOutcome
impl PartialEq for DischargeOutcome
Source§fn eq(&self, other: &DischargeOutcome) -> bool
fn eq(&self, other: &DischargeOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DischargeOutcome
Auto Trait Implementations§
impl Freeze for DischargeOutcome
impl RefUnwindSafe for DischargeOutcome
impl Send for DischargeOutcome
impl Sync for DischargeOutcome
impl Unpin for DischargeOutcome
impl UnsafeUnpin for DischargeOutcome
impl UnwindSafe for DischargeOutcome
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