[][src]Struct vst::buffer::Inputs

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

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

Implementations

impl<'a, T> Inputs<'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 split_at(&self, i: usize) -> (Inputs<'a, T>, Inputs<'a, T>)[src]

Split borrowing at the given index, like for slices

Trait Implementations

impl<'a, T: Clone + 'a> Clone for Inputs<'a, T>[src]

impl<'a, T: Copy + 'a> Copy for Inputs<'a, T>[src]

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

type Output = [T]

The returned type after indexing.

impl<'a, T: Sized> IntoIterator for Inputs<'a, T>[src]

type Item = &'a [T]

The type of the elements being iterated over.

type IntoIter = InputIterator<'a, T>

Which kind of iterator are we turning this into?

Auto Trait Implementations

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

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

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

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

impl<'a, T> UnwindSafe for Inputs<'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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.