Trait audio::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.

Object Safety§

This trait is not object safe.

Implementors§