pub struct Repeat<G>(/* private fields */);Expand description
Chain Adaptor which repeats the underlying elements.
Implementations§
Trait Implementations§
Source§impl<G> Chain for Repeat<G>where
G: Chain,
impl<G> Chain for Repeat<G>where
G: Chain,
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> ConstChain<{ usize::MAX }> for Repeat<G>where
G: Chain,
impl<G> ConstChain<{ usize::MAX }> for Repeat<G>where
G: Chain,
Source§impl<G> Signal<usize> for Repeat<G>where
G: Chain,
impl<G> Signal<usize> for Repeat<G>where
G: Chain,
Source§fn eval(&self, input: usize) -> Self::Output
fn eval(&self, input: usize) -> 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> Copy for Repeat<G>
impl<G> StructuralPartialEq for Repeat<G>
Auto Trait Implementations§
impl<G> Freeze for Repeat<G>where
G: Freeze,
impl<G> RefUnwindSafe for Repeat<G>where
G: RefUnwindSafe,
impl<G> Send for Repeat<G>where
G: Send,
impl<G> Sync for Repeat<G>where
G: Sync,
impl<G> Unpin for Repeat<G>where
G: Unpin,
impl<G> UnwindSafe for Repeat<G>where
G: 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