Trait audio_core::Channels[][src]

pub trait Channels<T>: Buf {
    fn channel(&self, channel: usize) -> Channel<'_, T>;
}

A trait describing something that has channels.

Required methods

fn channel(&self, channel: usize) -> Channel<'_, T>[src]

Return a handler to the buffer associated with the channel.

Note that we don’t access the buffer for the underlying channel directly as a linear buffer like &[T], because the underlying representation might be different.

We must instead make use of the various utility functions found on Channel to copy data out of the channel.

Panics

Panics if the specified channel is out of bound as reported by Buf::channels.

Loading content...

Implementations on Foreign Types

impl<B, T> Channels<T> for &B where
    B: Channels<T>, 
[src]

impl<B: ?Sized, T> Channels<T> for &mut B where
    B: Channels<T>, 
[src]

impl<T> Channels<T> for Vec<Vec<T>>[src]

impl<T> Channels<T> for [Vec<T>][src]

Loading content...

Implementors

Loading content...