pub struct CausalChain {
pub path: Vec<(NodeId, CausalEdgeType, NodeId)>,
pub explanation: String,
pub total_weight: f32,
}Expand description
A traced causal chain from source to target through the graph.
Each step records the source node, the typed relationship, and the
target node. The explanation field provides a human-readable
narrative like “A –Causes–> B –Enables–> C”.
Fields§
§path: Vec<(NodeId, CausalEdgeType, NodeId)>Sequence of (source, edge_type, target) steps in the chain.
explanation: StringHuman-readable narrative of the chain.
total_weight: f32Sum of edge weights along the chain.
Trait Implementations§
Source§impl Clone for CausalChain
impl Clone for CausalChain
Auto Trait Implementations§
impl Freeze for CausalChain
impl RefUnwindSafe for CausalChain
impl Send for CausalChain
impl Sync for CausalChain
impl Unpin for CausalChain
impl UnsafeUnpin for CausalChain
impl UnwindSafe for CausalChain
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more