pub trait Frame {
type Sample: Copy;
type Frame<'this>: Frame<Sample = Self::Sample>
where Self: 'this;
type Iter<'this>: Iterator<Item = Self::Sample>
where Self: 'this;
// Required methods
fn as_frame(&self) -> Self::Frame<'_>;
fn len(&self) -> usize;
fn get(&self, channel: usize) -> Option<Self::Sample>;
fn iter(&self) -> Self::Iter<'_>;
// Provided method
fn is_empty(&self) -> bool { ... }
}
Expand description
The buffer of a single frame.
Required Associated Types§
Required Methods§
Provided Methods§
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.