pub struct IfThenOperator;Expand description
Checks “condition” (true/false as string), sets “result” = “then” or “else”.
Trait Implementations§
Source§impl SomaOperator for IfThenOperator
impl SomaOperator for IfThenOperator
Source§fn execute(&self, inputs: &SymbolicContext) -> Result<SymbolicContext>
fn execute(&self, inputs: &SymbolicContext) -> Result<SymbolicContext>
Execute the operator on the given symbolic context, returning a new context or error.
Source§fn metadata(&self) -> OperatorMetadata
fn metadata(&self) -> OperatorMetadata
Return metadata describing the operator for introspection and selection.
Source§fn cognitive_cost(&self) -> f64
fn cognitive_cost(&self) -> f64
Return the estimated cognitive cost of this operator.
Source§fn uncertainty_propagation(&self) -> UncertaintyModel
fn uncertainty_propagation(&self) -> UncertaintyModel
Return the uncertainty propagation model for this operator.
Auto Trait Implementations§
impl Freeze for IfThenOperator
impl RefUnwindSafe for IfThenOperator
impl Send for IfThenOperator
impl Sync for IfThenOperator
impl Unpin for IfThenOperator
impl UnsafeUnpin for IfThenOperator
impl UnwindSafe for IfThenOperator
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