pub struct Merge<T, F> {
pub f: F,
/* private fields */
}Expand description
Combine two signals with a function
Fields§
§f: FImplementations§
Trait Implementations§
Source§impl<T, F> Module for Merge<T, F>
impl<T, F> Module for Merge<T, F>
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<T, F> Freeze for Merge<T, F>where
F: Freeze,
impl<T, F> RefUnwindSafe for Merge<T, F>where
F: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, F> Send for Merge<T, F>
impl<T, F> Sync for Merge<T, F>
impl<T, F> Unpin for Merge<T, F>
impl<T, F> UnsafeUnpin for Merge<T, F>where
F: UnsafeUnpin,
impl<T, F> UnwindSafe for Merge<T, F>where
F: UnwindSafe,
T: 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 (
&&&)