pub struct AddOperator;Expand description
Adds two numbers (“x”, “y”) from the context and stores the result as “sum”.
Trait Implementations§
Source§impl SomaOperator for AddOperator
impl SomaOperator for AddOperator
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 AddOperator
impl RefUnwindSafe for AddOperator
impl Send for AddOperator
impl Sync for AddOperator
impl Unpin for AddOperator
impl UnsafeUnpin for AddOperator
impl UnwindSafe for AddOperator
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