pub enum PirNode {
Const(bool),
Lit {
leaf: LeafId,
},
NegLit {
leaf: LeafId,
},
And {
children: Vec<PirNodeId>,
},
Or {
children: Vec<PirNodeId>,
},
Decision {
var: ChoiceVarId,
child_false: PirNodeId,
child_true: PirNodeId,
},
}Expand description
A node in the probabilistic intermediate representation.
Variants§
Const(bool)
Boolean constant.
Lit
Positive probabilistic literal.
NegLit
Negated probabilistic literal with complementary weight.
And
Conjunction of child nodes.
Or
Disjunction of child nodes.
Decision
Binary branch on an exclusive-choice variable.
Trait Implementations§
impl StructuralPartialEq for PirNode
Auto Trait Implementations§
impl Freeze for PirNode
impl RefUnwindSafe for PirNode
impl Send for PirNode
impl Sync for PirNode
impl Unpin for PirNode
impl UnsafeUnpin for PirNode
impl UnwindSafe for PirNode
Blanket Implementations§
impl<T> Allocation for T
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