pub trait Sample: Copy + Debug {
// Required methods
fn zero() -> Self;
fn scaled(self, amplitude: f64, offset: Self) -> Self;
}Expand description
A type a source can emit: real (f64) or complex (Complex<f64>) samples.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".