pub trait Waveform {
type Output: Sample;
// Required method
fn sample(&mut self, phase: Phase) -> Self::Output;
// Provided method
fn reset(&mut self) { ... }
}Expand description
Maps oscillator phase to an output value.
Required Associated Types§
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".