[][src]Struct vst::buffer::Outputs

pub struct Outputs<'a, T: 'a> { /* fields omitted */ }

Wrapper type to access the buffers for the output channels of an AudioBuffer in a safe way. Behaves like a slice.

Implementations

impl<'a, T> Outputs<'a, T>[src]

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

Number of channels

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

Returns true if the buffer is empty

pub fn get(&self, i: usize) -> &'a [T][src]

Access channel at the given index

pub fn get_mut(&mut self, i: usize) -> &'a mut [T][src]

Mutably access channel at the given index

pub fn split_at_mut(self, i: usize) -> (Outputs<'a, T>, Outputs<'a, T>)[src]

Split borrowing at the given index, like for slices

Trait Implementations

impl<'a, T> Index<usize> for Outputs<'a, T>[src]

type Output = [T]

The returned type after indexing.

impl<'a, T> IndexMut<usize> for Outputs<'a, T>[src]

impl<'a, 'b, T: Sized> IntoIterator for &'b mut Outputs<'a, T>[src]

type Item = &'b mut [T]

The type of the elements being iterated over.

type IntoIter = OutputIterator<'a, 'b, T>

Which kind of iterator are we turning this into?

Auto Trait Implementations

impl<'a, T> RefUnwindSafe for Outputs<'a, T> where
    T: RefUnwindSafe

impl<'a, T> !Send for Outputs<'a, T>

impl<'a, T> !Sync for Outputs<'a, T>

impl<'a, T> Unpin for Outputs<'a, T>

impl<'a, T> UnwindSafe for Outputs<'a, T> where
    T: RefUnwindSafe

Blanket Implementations

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

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

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

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.