pub struct CausalResult {
pub root_id: u64,
pub dependents: Vec<u64>,
pub dependency_tree: HashMap<u64, Vec<(u64, EdgeType)>>,
pub affected_decisions: usize,
pub affected_inferences: usize,
}Expand description
Result of a causal query.
Fields§
§root_id: u64The root node being analyzed.
dependents: Vec<u64>All nodes that directly or indirectly depend on the root.
dependency_tree: HashMap<u64, Vec<(u64, EdgeType)>>The dependency tree: node_id -> list of (dependent_id, edge_type).
affected_decisions: usizeTotal number of decisions that depend on this node.
affected_inferences: usizeTotal number of inferences that depend on this node.
Auto Trait Implementations§
impl Freeze for CausalResult
impl RefUnwindSafe for CausalResult
impl Send for CausalResult
impl Sync for CausalResult
impl Unpin for CausalResult
impl UnsafeUnpin for CausalResult
impl UnwindSafe for CausalResult
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