pub trait MulNorm {
// Required methods
fn saturating_add(self, other: Self) -> Self;
fn mul_norm(self, other: Self) -> Self;
}Expand description
This trait is being used for scaling sample amplitudes.
Required Methods§
Sourcefn saturating_add(self, other: Self) -> Self
fn saturating_add(self, other: Self) -> Self
Saturating addition. Computes self + other, saturating at the normalized bounds instead of overflowing.
Float samples operates in range: [-1.0, 1.0], integer: [min, max]
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.