pub trait FrameMut: Frame {
type FrameMut<'this>: FrameMut<Sample = Self::Sample>
where Self: 'this;
type IterMut<'this>: Iterator<Item = &'this mut Self::Sample>
where Self: 'this;
// Required methods
fn as_sample_mut(&self) -> Self::FrameMut<'_>;
fn get_mut(&self, channel: usize) -> Option<&mut Self::Sample>;
fn iter_mut(&self) -> Self::IterMut<'_>;
}
Expand description
The buffer of a single frame.
Required Associated Types§
Required Methods§
Sourcefn as_sample_mut(&self) -> Self::FrameMut<'_>
fn as_sample_mut(&self) -> Self::FrameMut<'_>
Reborrow the current frame as a reference.
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.