pub enum TraceDecision {
SelectedBecause(OwnerFact),
OmittedBecause(OwnerFact),
NotRun,
}Expand description
What a plan decided about one subject, and on whose fact.
A selection and an omission each cite the fact that decided them, because both are decisions somebody’s declaration caused; a check that did not run cites nothing and stays distinct from one that ran and omitted.
Variants§
SelectedBecause(OwnerFact)
Selected, because this fact required it.
OmittedBecause(OwnerFact)
Omitted, because this fact excluded it.
NotRun
The check did not run. Never a pass, never a fail.
Implementations§
Source§impl TraceDecision
impl TraceDecision
Sourcepub fn encode_into(&self, into: &mut Vec<u8>)
pub fn encode_into(&self, into: &mut Vec<u8>)
Appends this decision’s canonical bytes: the discriminant, then the cited fact where one was cited.
TraceDecision::NotRun writes its discriminant followed by an empty framed citation, so every decision keeps one unambiguous citation seat.
Trait Implementations§
Source§impl Clone for TraceDecision
impl Clone for TraceDecision
Source§fn clone(&self) -> TraceDecision
fn clone(&self) -> TraceDecision
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 TraceDecision
Source§impl Debug for TraceDecision
impl Debug for TraceDecision
impl Eq for TraceDecision
Source§impl Hash for TraceDecision
impl Hash for TraceDecision
Source§impl PartialEq for TraceDecision
impl PartialEq for TraceDecision
impl StructuralPartialEq for TraceDecision
Auto Trait Implementations§
impl Freeze for TraceDecision
impl RefUnwindSafe for TraceDecision
impl Send for TraceDecision
impl Sync for TraceDecision
impl Unpin for TraceDecision
impl UnsafeUnpin for TraceDecision
impl UnwindSafe for TraceDecision
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