pub struct Chain<A, B> {
pub first: A,
pub second: B,
}Expand description
A sequential composition of two DSP nodes A and B with zero runtime overhead.
Fields§
§first: A§second: BTrait Implementations§
impl<A: Copy, B: Copy> Copy for Chain<A, B>
Source§impl<T: Copy, A: DspNode<T>, B: DspNode<T>> DspNode<T> for Chain<A, B>
impl<T: Copy, A: DspNode<T>, B: DspNode<T>> DspNode<T> for Chain<A, B>
Source§fn process_sample(&mut self, input: T) -> T
fn process_sample(&mut self, input: T) -> T
Process a single input sample and produce one output sample.
Source§fn process_block(&mut self, in_buf: &[T], out_buf: &mut [T])
fn process_block(&mut self, in_buf: &[T], out_buf: &mut [T])
Process a block of samples from
in_buf into out_buf.Source§fn process_in_place(&mut self, buf: &mut [T])
fn process_in_place(&mut self, buf: &mut [T])
Process a block of samples in place.
Auto Trait Implementations§
impl<A, B> Freeze for Chain<A, B>
impl<A, B> RefUnwindSafe for Chain<A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for Chain<A, B>
impl<A, B> Sync for Chain<A, B>
impl<A, B> Unpin for Chain<A, B>
impl<A, B> UnsafeUnpin for Chain<A, B>where
A: UnsafeUnpin,
B: UnsafeUnpin,
impl<A, B> UnwindSafe for Chain<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