pub trait MulByScalar<Rhs, Out = Self>: Sized {
// Required method
fn mul_by_scalar<const CHECK: bool>(&self, rhs: Rhs) -> Option<Out>;
}Required Methods§
Sourcefn mul_by_scalar<const CHECK: bool>(&self, rhs: Rhs) -> Option<Out>
fn mul_by_scalar<const CHECK: bool>(&self, rhs: Rhs) -> Option<Out>
Multiplies the current element by a scalar from the right (usually - a
coefficient to obtain a linear combination).
Returns None if the multiplication would overflow.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.