Struct rotary::interleaved::Channel [−][src]
A reference to a channel in a buffer.
Implementations
impl<'a, T> Channel<'a, T> where
T: Sample,
[src]
T: Sample,
pub fn get(&self, frame: usize) -> Option<T>
[src]
Get a reference to a frame.
pub fn iter(&self) -> ChannelIter<'_, T>
[src]
Construct an iterator over the current channel.
Trait Implementations
impl<'a, T: Clone> Clone for Channel<'a, T> where
T: Sample,
[src]
T: Sample,
impl<'a, T: Copy> Copy for Channel<'a, T> where
T: Sample,
[src]
T: Sample,
impl<T> Debug for Channel<'_, T> where
T: Sample + Debug,
[src]
T: Sample + Debug,
impl<T> Eq for Channel<'_, T> where
T: Sample + Eq,
[src]
T: Sample + Eq,
impl<T> Hash for Channel<'_, T> where
T: Sample + Hash,
[src]
T: Sample + Hash,
fn hash<H: Hasher>(&self, state: &mut H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<T> Ord for Channel<'_, T> where
T: Sample + Ord,
[src]
T: Sample + Ord,
fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl<T> PartialEq<Channel<'_, T>> for Channel<'_, T> where
T: Sample + PartialEq,
[src]
T: Sample + PartialEq,
impl<T> PartialOrd<Channel<'_, T>> for Channel<'_, T> where
T: Sample + PartialOrd,
[src]
T: Sample + PartialOrd,
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T> Send for Channel<'_, T> where
T: Sample + Sync,
[src]
T: Sample + Sync,
impl<T> Sync for Channel<'_, T> where
T: Sample + Sync,
[src]
T: Sample + Sync,
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for Channel<'a, T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, T> Unpin for Channel<'a, T>
impl<'a, T> UnwindSafe for Channel<'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>,