pub trait MonoAudioProcessor {
type SampleType: Copy;
// Provided methods
fn m_prepare(&mut self, _context: &mut AudioContext) { ... }
fn m_process(
&mut self,
_context: &mut AudioContext,
sample: Self::SampleType,
) -> Self::SampleType { ... }
}Required Associated Types§
type SampleType: Copy
Provided Methods§
fn m_prepare(&mut self, _context: &mut AudioContext)
fn m_process( &mut self, _context: &mut AudioContext, sample: Self::SampleType, ) -> Self::SampleType
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".