pub trait Frame {
const ZERO: Self;
// Required methods
fn channels(&self) -> &[Sample] ⓘ;
fn channels_mut(&mut self) -> &mut [Sample] ⓘ;
}Expand description
A single frame of audio data, encoding one sample for each channel
Required Associated Constants§
Required Methods§
Sourcefn channels_mut(&mut self) -> &mut [Sample] ⓘ
fn channels_mut(&mut self) -> &mut [Sample] ⓘ
Mutably access the frame’s channels
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.