pub enum ExplanationNode {
Rule {
name: RulePath,
result: Option<String>,
body: String,
causes: Vec<Cause>,
children: Vec<ExplanationNode>,
},
Compose {
expression: String,
operands: Vec<ExplanationNode>,
},
Data {
name: DataPath,
display: String,
},
DataUnused {
name: DataPath,
},
Conversion {
expression: String,
steps: Vec<SerializedConversionTraceStep>,
operands: Vec<ExplanationNode>,
},
Veto {
message: Option<String>,
},
UnitEquivalence {
text: String,
},
Piecewise {
arms: Vec<PiecewiseArm>,
},
}Variants§
Rule
Compose
Data
Evaluated / bound data narration. display is always the looked-up value or veto text.
DataUnused
Structural mention of a data path that was not looked up for this cause (short-circuit skip or static record narration without a binding).
Conversion
Veto
UnitEquivalence
Piecewise
Planning/eval only. Never reaches wire — lowered to causes + winner first.
Trait Implementations§
Source§impl Clone for ExplanationNode
impl Clone for ExplanationNode
Source§fn clone(&self) -> ExplanationNode
fn clone(&self) -> ExplanationNode
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 ExplanationNode
impl Debug for ExplanationNode
impl Eq for ExplanationNode
Source§impl PartialEq for ExplanationNode
impl PartialEq for ExplanationNode
Source§impl Serialize for ExplanationNode
impl Serialize for ExplanationNode
impl StructuralPartialEq for ExplanationNode
Auto Trait Implementations§
impl Freeze for ExplanationNode
impl RefUnwindSafe for ExplanationNode
impl Send for ExplanationNode
impl Sync for ExplanationNode
impl Unpin for ExplanationNode
impl UnsafeUnpin for ExplanationNode
impl UnwindSafe for ExplanationNode
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> 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.