[−][src]Struct vst::buffer::Outputs
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]
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?
fn into_iter(self) -> Self::IntoIter
[src]
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for Outputs<'a, T> where
T: RefUnwindSafe,
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,
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, 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>,