Struct rotary::channel::ChannelMut [−][src]
A mutable reference to a channel in a buffer.
Implementations
impl<'a, T> ChannelMut<'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 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]
Notable traits for ChannelIter<'a, T>
impl<'a, T> Iterator for ChannelIter<'a, T> where
T: Sample, type Item = &'a T;
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]
Notable traits for ChannelIterMut<'a, T>
impl<'a, T> Iterator for ChannelIterMut<'a, T> where
T: Sample, type Item = &'a mut T;
Construct a mutable iterator over the current channel.
Trait Implementations
impl<T> Debug for ChannelMut<'_, T> where
T: Sample + Debug,
[src]
T: Sample + Debug,
impl<T> Eq for ChannelMut<'_, T> where
T: Sample + Eq,
[src]
T: Sample + Eq,
impl<T> Hash for ChannelMut<'_, 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 ChannelMut<'_, 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<ChannelMut<'_, T>> for ChannelMut<'_, T> where
T: Sample + PartialEq,
[src]
T: Sample + PartialEq,
impl<T> PartialOrd<ChannelMut<'_, T>> for ChannelMut<'_, 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 ChannelMut<'_, T> where
T: Sample + Send,
[src]
T: Sample + Send,
impl<T> Sync for ChannelMut<'_, T> where
T: Sample + Sync,
[src]
T: Sample + Sync,
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for ChannelMut<'a, T> where
T: RefUnwindSafe,
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]
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>,