pub struct Stack<G, H>(/* private fields */);Expand description
Chain adaptor which stacks two signals.
That it, the struct holds two signals with output S and T and outputs (S,T).
This struct is created by `Signal::stack. See its documentation for more.
Implementations§
Trait Implementations§
Source§impl<G, H> Chain for Stack<G, H>
impl<G, H> Chain for Stack<G, H>
Source§fn len(&self) -> usize
fn len(&self) -> usize
Returns the minimum amount of elements the signal can create. Read more
Source§fn first(&self) -> Option<Self::Output>
fn first(&self) -> Option<Self::Output>
Returns the first element of the signal, or
None if it is empty.Source§fn last(&self) -> Option<Self::Output>
fn last(&self) -> Option<Self::Output>
Returns the last element of the signal, or
None if it is empty.Source§impl<G, H, const N: usize> ConstChain<N> for Stack<G, H>where
G: ConstChain<N>,
H: ConstChain<N>,
impl<G, H, const N: usize> ConstChain<N> for Stack<G, H>where
G: ConstChain<N>,
H: ConstChain<N>,
Source§impl<G, H, R> Curve<R> for Stack<G, H>
impl<G, H, R> Curve<R> for Stack<G, H>
Source§impl<G, H, Input> Signal<Input> for Stack<G, H>
impl<G, H, Input> Signal<Input> for Stack<G, H>
Source§type Output = (<G as Signal<Input>>::Output, <H as Signal<Input>>::Output)
type Output = (<G as Signal<Input>>::Output, <H as Signal<Input>>::Output)
The element outputted
Source§fn eval(&self, input: Input) -> Self::Output
fn eval(&self, input: Input) -> Self::Output
Method to generate the element at the given input
Source§fn extract<I, J>(self, iterator: I) -> Extract<Self, J> ⓘ
fn extract<I, J>(self, iterator: I) -> Extract<Self, J> ⓘ
Helper function if one wants to extract values from the interpolation. Read more
Source§fn stack<G>(self, signal: G) -> Stack<Self, G>where
Self: Sized,
fn stack<G>(self, signal: G) -> Stack<Self, G>where
Self: Sized,
Stack two signals together Read more
impl<G: Copy, H: Copy> Copy for Stack<G, H>
impl<G, H> StructuralPartialEq for Stack<G, H>
Auto Trait Implementations§
impl<G, H> Freeze for Stack<G, H>
impl<G, H> RefUnwindSafe for Stack<G, H>where
G: RefUnwindSafe,
H: RefUnwindSafe,
impl<G, H> Send for Stack<G, H>
impl<G, H> Sync for Stack<G, H>
impl<G, H> Unpin for Stack<G, H>
impl<G, H> UnwindSafe for Stack<G, H>where
G: UnwindSafe,
H: 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