pub struct Swap<A, B> { /* private fields */ }Expand description
Swap tuple elements
Implementations§
Trait Implementations§
Source§impl<A: Send, B: Send> Module for Swap<A, B>
impl<A: Send, B: Send> Module for Swap<A, B>
Source§fn tick(&mut self, (a, b): Self::In) -> Self::Out
fn tick(&mut self, (a, b): Self::In) -> Self::Out
Process a single sample, advancing internal state by one time step. Read more
Source§fn process(&mut self, input: &[Self::In], output: &mut [Self::Out])
fn process(&mut self, input: &[Self::In], output: &mut [Self::Out])
Process a block of samples for efficiency. Read more
Source§fn set_sample_rate(&mut self, _sample_rate: f64)
fn set_sample_rate(&mut self, _sample_rate: f64)
Notify module of sample rate changes. Read more
Auto Trait Implementations§
impl<A, B> Freeze for Swap<A, B>
impl<A, B> RefUnwindSafe for Swap<A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for Swap<A, B>
impl<A, B> Sync for Swap<A, B>
impl<A, B> Unpin for Swap<A, B>
impl<A, B> UnsafeUnpin for Swap<A, B>
impl<A, B> UnwindSafe for Swap<A, B>where
A: UnwindSafe,
B: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<M> ModuleExt for Mwhere
M: Module,
impl<M> ModuleExt for Mwhere
M: Module,
Source§fn then<M: Module<In = Self::Out>>(self, next: M) -> Chain<Self, M>
fn then<M: Module<In = Self::Out>>(self, next: M) -> Chain<Self, M>
Chain this module with another (sequential composition:
>>>)Source§fn fanout<M: Module<In = Self::In>>(self, other: M) -> Fanout<Self, M>
fn fanout<M: Module<In = Self::In>>(self, other: M) -> Fanout<Self, M>
Split input to two parallel processors (
&&&)