Skip to main content

InterleavedFrame

Struct InterleavedFrame 

Source
pub struct InterleavedFrame<'a, T> { /* private fields */ }
Expand description

The frame of a interleaved buffer.

Trait Implementations§

Source§

impl<T> Frame for InterleavedFrame<'_, T>
where T: Copy,

Source§

type Sample = T

The sample of a channel.
Source§

type Frame<'this> = InterleavedFrame<'this, T> where Self: 'this

The type the frame assumes when coerced into a reference.
Source§

type Iter<'this> = Iter<'this, T> where Self: 'this

A borrowing iterator over the channel.
Source§

fn as_frame(&self) -> Self::Frame<'_>

Reborrow the current frame as a reference.
Source§

fn len(&self) -> usize

Get the length which indicates number of samples in the current frame.
Source§

fn get(&self, channel: usize) -> Option<Self::Sample>

Get the sample at the given channel in the frame.
Source§

fn iter(&self) -> Self::Iter<'_>

Construct an iterator over the frame.
Source§

fn is_empty(&self) -> bool

Test if the current frame is empty.

Auto Trait Implementations§

§

impl<'a, T> Freeze for InterleavedFrame<'a, T>

§

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

§

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

§

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

§

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

§

impl<'a, T> UnsafeUnpin for InterleavedFrame<'a, T>

§

impl<'a, T> UnwindSafe for InterleavedFrame<'a, T>
where T: RefUnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.