pub enum ExplanationNode {
Rule {
rule: RulePath,
result: String,
body: String,
causes: Vec<Cause>,
children: Vec<ExplanationNode>,
},
Compose {
expression: String,
operands: Vec<ExplanationNode>,
},
DataInput {
data: DataPath,
display: String,
},
Conversion {
expression: String,
steps: Vec<SerializedConversionTraceStep>,
operands: Vec<ExplanationNode>,
},
Veto {
message: Option<String>,
},
UnitEquivalence {
text: String,
},
}Variants§
Rule
Compose
DataInput
Conversion
Veto
UnitEquivalence
A unit reconciliation fact (“1 mile is 1.60934 kilometer”) stated when an operator’s operands carry different units of the same quantity family, so the implicit conversion inside the arithmetic is followable without external lookup tables. Derived from declared unit factors — static metadata, not evaluation.
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
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