pub struct Divide { /* private fields */ }Implementations§
Trait Implementations§
Source§impl ComputePrimitive for Divide
impl ComputePrimitive for Divide
Source§fn compute(
&self,
inputs: &HashMap<String, Value>,
_parameters: &HashMap<String, Value>,
_state: Option<&mut PrimitiveState>,
) -> Result<HashMap<String, Value>, ComputeError>
fn compute( &self, inputs: &HashMap<String, Value>, _parameters: &HashMap<String, Value>, _state: Option<&mut PrimitiveState>, ) -> Result<HashMap<String, Value>, ComputeError>
B.2: Strict divide - math-true semantics.
Returns Err(DivisionByZero) when b == 0.0.
Returns Err(NonFiniteResult) when result overflows to inf.
For fallback-on-zero behavior, use safe_divide.
See: B.2 in PHASE_INVARIANTS.md
fn manifest(&self) -> &ComputePrimitiveManifest
Auto Trait Implementations§
impl Freeze for Divide
impl RefUnwindSafe for Divide
impl Send for Divide
impl Sync for Divide
impl Unpin for Divide
impl UnsafeUnpin for Divide
impl UnwindSafe for Divide
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