pub trait MulAdd {
// Required method
fn mul_add(self, b: &Self, c: &Self) -> Self;
}
Expand description
This trait provide the interface of the function for performing a multiplication and an addition in one fused operation.
§Note
The difference between this trait and num::traits::MulAdd
is that this trait uses references as input arguments
instead of values as used by the function num::traits::MulAdd::mul_add()
.
Required Methods§
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.