[][src]Struct brinicle_kernel::AudioBuffer

pub struct AudioBuffer<'c, 'a> where
    'a: 'c,
    'a: 'c, 
{ /* fields omitted */ }

Methods

impl<'c, 'a> AudioBuffer<'c, 'a> where
    'a: 'c, 
[src]

pub fn new(buf: &'c [&'a [f32]]) -> AudioBuffer<'c, 'a>[src]

pub fn slice(&'d self, range: Range<usize>) -> SmallVec<[&'d [f32]; 8]>[src]

pub fn len(&self) -> usize[src]

pub fn is_empty(&self) -> bool[src]

pub fn num_channels(&self) -> usize[src]

pub fn split_first(&self) -> Option<(&'a [f32], AudioBuffer<'c, 'a>)>[src]

Trait Implementations

impl<'d, 'c, 'a> IntoIterator for &'d AudioBuffer<'c, 'a> where
    'c: 'd,
    'a: 'c, 
[src]

type Item = &'d [f32]

The type of the elements being iterated over.

type IntoIter = Iter<'d, 'a>

Which kind of iterator are we turning this into?

impl<'c, 'a> Index<usize> for AudioBuffer<'c, 'a> where
    'a: 'c, 
[src]

type Output = [f32]

The returned type after indexing.

impl<'d, 'c, 'a> From<&'d AudioBuffer<'c, 'a>> for AudioBuffer<'d, 'a> where
    'c: 'd,
    'a: 'c, 
[src]

impl<'c, 'a> From<AudioBufferMut<'c, 'a>> for AudioBuffer<'c, 'c> where
    'a: 'c, 
[src]

impl<'c, 'a> From<&'c SmallVec<[&'a [f32]; 8]>> for AudioBuffer<'c, 'a> where
    'a: 'c, 
[src]

impl<'c, 'a> From<&'c [&'a [f32]]> for AudioBuffer<'c, 'a> where
    'a: 'c, 
[src]

Auto Trait Implementations

impl<'c, 'a> Sync for AudioBuffer<'c, 'a>

impl<'c, 'a> Unpin for AudioBuffer<'c, 'a> where
    'a: 'c, 

impl<'c, 'a> Send for AudioBuffer<'c, 'a>

impl<'c, 'a> UnwindSafe for AudioBuffer<'c, 'a>

impl<'c, 'a> RefUnwindSafe for AudioBuffer<'c, 'a>

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]