pub trait MulAddAssign<A = Self, B = Self> {
// Required method
fn mul_add_assign(&mut self, a: A, b: B);
}Expand description
The fused multiply-add assignment operation *self = (*self * a) + b
Required Methods§
Sourcefn mul_add_assign(&mut self, a: A, b: B)
fn mul_add_assign(&mut self, a: A, b: B)
Performs the fused multiply-add assignment operation *self = (*self * a) + b
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl MulAddAssign for f32
Available on crate features std or libm only.
impl MulAddAssign for f32
Available on crate features
std or libm only.fn mul_add_assign(&mut self, a: f32, b: f32)
Source§impl MulAddAssign for f64
Available on crate features std or libm only.
impl MulAddAssign for f64
Available on crate features
std or libm only.