Struct rotary::channel::Channel[][src]

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

A reference to a channel in a buffer.

See crate::Interleaved::get.

Implementations

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

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

Get a 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.

Trait Implementations

impl<'a, T: Clone> Clone for Channel<'a, T> where
    T: Sample
[src]

impl<'a, T: Copy> Copy for Channel<'a, T> where
    T: Sample
[src]

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

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

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

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

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

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

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

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

Auto Trait Implementations

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

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

impl<'a, T> UnwindSafe for Channel<'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.