pub enum UncertainNodeContent {
Show 14 variants
Value(SampledValue),
DistributionF64(DistributionEnum<f64>),
DistributionBool(DistributionEnum<bool>),
PureOp {
value: SampledValue,
},
FmapOp {
func: Arc<dyn SampledFmapFn>,
operand: ConstTree<UncertainNodeContent>,
},
ApplyOp {
func: Arc<dyn SampledFmapFn>,
arg: ConstTree<UncertainNodeContent>,
},
BindOp {
func: Arc<dyn SampledBindFn>,
operand: ConstTree<UncertainNodeContent>,
},
ArithmeticOp {
op: ArithmeticOperator,
lhs: ConstTree<UncertainNodeContent>,
rhs: ConstTree<UncertainNodeContent>,
},
ComparisonOp {
op: ComparisonOperator,
threshold: f64,
operand: ConstTree<UncertainNodeContent>,
},
LogicalOp {
op: LogicalOperator,
operands: Vec<ConstTree<UncertainNodeContent>>,
},
FunctionOpF64 {
func: Arc<dyn Fn(f64) -> f64 + Send + Sync>,
operand: ConstTree<UncertainNodeContent>,
},
FunctionOpBool {
func: Arc<dyn Fn(f64) -> bool + Send + Sync>,
operand: ConstTree<UncertainNodeContent>,
},
NegationOp {
operand: ConstTree<UncertainNodeContent>,
},
ConditionalOp {
condition: ConstTree<UncertainNodeContent>,
if_true: ConstTree<UncertainNodeContent>,
if_false: ConstTree<UncertainNodeContent>,
},
}Variants§
Value(SampledValue)
DistributionF64(DistributionEnum<f64>)
DistributionBool(DistributionEnum<bool>)
PureOp
Fields
§
value: SampledValueFmapOp
ApplyOp
BindOp
ArithmeticOp
Fields
ComparisonOp
LogicalOp
FunctionOpF64
FunctionOpBool
NegationOp
Fields
§
operand: ConstTree<UncertainNodeContent>ConditionalOp
Fields
§
condition: ConstTree<UncertainNodeContent>§
if_true: ConstTree<UncertainNodeContent>§
if_false: ConstTree<UncertainNodeContent>Trait Implementations§
Source§impl Clone for UncertainNodeContent
impl Clone for UncertainNodeContent
Source§fn clone(&self) -> UncertainNodeContent
fn clone(&self) -> UncertainNodeContent
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 moreSource§impl Debug for UncertainNodeContent
impl Debug for UncertainNodeContent
Source§impl PartialEq for UncertainNodeContent
impl PartialEq for UncertainNodeContent
Auto Trait Implementations§
impl Freeze for UncertainNodeContent
impl !RefUnwindSafe for UncertainNodeContent
impl Send for UncertainNodeContent
impl Sync for UncertainNodeContent
impl Unpin for UncertainNodeContent
impl !UnwindSafe for UncertainNodeContent
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