[−][src]Struct vst::buffer::Inputs
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]
impl<'a, T: Sized> IntoIterator for Inputs<'a, T>
[src]
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for Inputs<'a, T> where
T: RefUnwindSafe,
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,
T: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,