Trait FrameMut

Source
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§

Source

type FrameMut<'this>: FrameMut<Sample = Self::Sample> where Self: 'this

The type the frame assumes when coerced into a reference.

Source

type IterMut<'this>: Iterator<Item = &'this mut Self::Sample> where Self: 'this

A borrowing iterator over the channel.

Required Methods§

Source

fn as_sample_mut(&self) -> Self::FrameMut<'_>

Reborrow the current frame as a reference.

Source

fn get_mut(&self, channel: usize) -> Option<&mut Self::Sample>

Get the sample mutable at the given channel in the frame.

Source

fn iter_mut(&self) -> Self::IterMut<'_>

Construct a mutable iterator over the frame.

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.

Implementors§