pub trait ConstArithAlgebra<Value, Const> {
// Required methods
fn setc(&mut self, v: &Value, c: Const) -> Value;
fn addc(&mut self, v: &Value, c: Const) -> Value;
fn mulc(&mut self, v: &Value, c: Const) -> Value;
fn powc(&mut self, v: &Value, c: Const) -> Value;
}Expand description
Element-wise arithmetic operations with a constant value.
Required Methods§
Sourcefn setc(&mut self, v: &Value, c: Const) -> Value
fn setc(&mut self, v: &Value, c: Const) -> Value
Return a value with the same shape as v but filled with constant c.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".