pub struct CausalChain {
pub path: Vec<NodeId>,
pub relations: Vec<InternedStr>,
pub cumulative_strength: FiniteF32,
}Expand description
A single causal chain: path of nodes with cumulative strength. Replaces: temporal_v2.py CausalChain dataclass
Fields§
§path: Vec<NodeId>Ordered list of nodes in the chain.
relations: Vec<InternedStr>Relation labels between consecutive nodes.
cumulative_strength: FiniteF32Cumulative causal strength (product of edge causal_strengths).
Trait Implementations§
Source§impl Clone for CausalChain
impl Clone for CausalChain
Source§fn clone(&self) -> CausalChain
fn clone(&self) -> CausalChain
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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