pub struct TraceNode {
pub typ: String,
pub value: f64,
pub children: Vec<TraceNode>,
pub left_ref: Option<String>,
pub right_ref: Option<String>,
}Expand description
One node of an evaluation trace — the verdict tree explain returns.
Mirrors the expression: typ is the node’s type URI, value its result
(1.0/0.0 for booleans), children the operand traces in evaluation
order. A short-circuited operand is simply ABSENT from children — the
trace is truthful about what ran. Ordered comparisons carry their resolved
operand identities as left_ref/right_ref instead of children. This is a
runtime return shape, not an ontology class.
Fields§
§typ: String§value: f64§children: Vec<TraceNode>§left_ref: Option<String>§right_ref: Option<String>Trait Implementations§
Auto Trait Implementations§
impl Freeze for TraceNode
impl RefUnwindSafe for TraceNode
impl Send for TraceNode
impl Sync for TraceNode
impl Unpin for TraceNode
impl UnsafeUnpin for TraceNode
impl UnwindSafe for TraceNode
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