Struct rotary::channel::ChannelMut[][src]

pub struct ChannelMut<'a, T> where
    T: Sample
{ /* fields omitted */ }

A mutable reference to a channel in a buffer.

See crate::Interleaved::get_mut.

Implementations

impl<'a, T> ChannelMut<'a, T> where
    T: Sample
[src]

pub fn get(&self, frame: usize) -> Option<&T>[src]

Get a reference to a frame.

pub fn get_mut(&mut self, frame: usize) -> Option<&mut T>[src]

Get a mutable reference to a frame.

pub fn iter(&self) -> ChannelIter<'_, T>

Notable traits for ChannelIter<'a, T>

impl<'a, T> Iterator for ChannelIter<'a, T> where
    T: Sample
type Item = &'a T;
[src]

Construct an iterator over the current channel.

pub fn iter_mut(&mut self) -> ChannelIterMut<'_, T>

Notable traits for ChannelIterMut<'a, T>

impl<'a, T> Iterator for ChannelIterMut<'a, T> where
    T: Sample
type Item = &'a mut T;
[src]

Construct a mutable iterator over the current channel.

Trait Implementations

impl<T> Debug for ChannelMut<'_, T> where
    T: Sample + Debug
[src]

impl<T> Eq for ChannelMut<'_, T> where
    T: Sample + Eq
[src]

impl<T> Hash for ChannelMut<'_, T> where
    T: Sample + Hash
[src]

impl<T> Ord for ChannelMut<'_, T> where
    T: Sample + Ord
[src]

impl<T> PartialEq<ChannelMut<'_, T>> for ChannelMut<'_, T> where
    T: Sample + PartialEq
[src]

impl<T> PartialOrd<ChannelMut<'_, T>> for ChannelMut<'_, T> where
    T: Sample + PartialOrd
[src]

impl<T> Send for ChannelMut<'_, T> where
    T: Sample + Send
[src]

impl<T> Sync for ChannelMut<'_, T> where
    T: Sample + Sync
[src]

Auto Trait Implementations

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

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

impl<'a, T> !UnwindSafe for ChannelMut<'a, T>

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.