pub struct AddAmp<S, X, const N: usize>where
S: Signal<N>,
S::Frame: Frame<N>,
<S::Frame as Frame<N>>::Sample: Sample<Signed = X>,
X: Sample,{ /* private fields */ }
Trait Implementations§
Source§impl<S, X, const N: usize> Signal<N> for AddAmp<S, X, N>
impl<S, X, const N: usize> Signal<N> for AddAmp<S, X, N>
Source§fn sig_next(&mut self) -> Self::Frame
fn sig_next(&mut self) -> Self::Frame
Similar to [
next
], but will always yield a Frame
. Yields
Frame::EQUILIBRIUM
if there are no more actual Frame
s to yield.Source§fn zip_map<O, F, M, const NO: usize, const NF: usize>(
self,
other: O,
func: M,
) -> ZipMap<Self, O, F, M, N, NO, NF>
fn zip_map<O, F, M, const NO: usize, const NF: usize>( self, other: O, func: M, ) -> ZipMap<Self, O, F, M, N, NO, NF>
Source§fn add_signal<B>(self, other: B) -> AddSignal<Self, B, N>
fn add_signal<B>(self, other: B) -> AddSignal<Self, B, N>
Source§fn mul_signal<B>(self, other: B) -> MulSignal<Self, B, N>
fn mul_signal<B>(self, other: B) -> MulSignal<Self, B, N>
Source§fn delay(self, n_frames: usize) -> Delay<Self, N>where
Self: Sized,
fn delay(self, n_frames: usize) -> Delay<Self, N>where
Self: Sized,
Delays
Self
by a given number of frames. The delay is performed by
yielding Frame::EQUILIBRIUM
that number of times before continuing
to yield frames from Self
.Auto Trait Implementations§
impl<S, X, const N: usize> Freeze for AddAmp<S, X, N>
impl<S, X, const N: usize> RefUnwindSafe for AddAmp<S, X, N>where
<<S as Signal<N>>::Frame as Frame<N>>::Sample: Sized,
<S as Signal<N>>::Frame: Sized,
S: RefUnwindSafe,
X: RefUnwindSafe,
impl<S, X, const N: usize> Send for AddAmp<S, X, N>
impl<S, X, const N: usize> Sync for AddAmp<S, X, N>
impl<S, X, const N: usize> Unpin for AddAmp<S, X, N>
impl<S, X, const N: usize> UnwindSafe for AddAmp<S, X, N>where
<<S as Signal<N>>::Frame as Frame<N>>::Sample: Sized,
<S as Signal<N>>::Frame: Sized,
S: UnwindSafe,
X: 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