pub struct AddSignal<A, B, const N: usize>{ /* private fields */ }
Trait Implementations§
Source§impl<A, B, const N: usize> Signal<N> for AddSignal<A, B, N>
impl<A, B, const N: usize> Signal<N> for AddSignal<A, B, 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<A, B, const N: usize> Freeze for AddSignal<A, B, N>
impl<A, B, const N: usize> RefUnwindSafe for AddSignal<A, B, N>
impl<A, B, const N: usize> Send for AddSignal<A, B, N>
impl<A, B, const N: usize> Sync for AddSignal<A, B, N>
impl<A, B, const N: usize> Unpin for AddSignal<A, B, N>
impl<A, B, const N: usize> UnwindSafe for AddSignal<A, B, N>
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