pub struct Constant<Value> { /* private fields */ }Expand description
An unbounded constant signal.
Implementations§
Trait Implementations§
Source§impl<Value: Clone + Send + Sync> Signal<Value> for Constant<Value>
impl<Value: Clone + Send + Sync> Signal<Value> for Constant<Value>
Source§fn sample(&self, _time: Time) -> Value
fn sample(&self, _time: Time) -> Value
Samples without advancing a clock or changing playback state.
Source§fn map<Output, Function>(self, function: Function) -> Map<Self, Function, Value>
fn map<Output, Function>(self, function: Function) -> Map<Self, Function, Value>
Transforms values without changing timing.
Auto Trait Implementations§
impl<Value> Forget for Constant<Value>
impl<Value> Freeze for Constant<Value>where
Value: Freeze,
impl<Value> Move for Constant<Value>
impl<Value> RefUnwindSafe for Constant<Value>where
Value: RefUnwindSafe,
impl<Value> Send for Constant<Value>where
Value: Send,
impl<Value> Sync for Constant<Value>where
Value: Sync,
impl<Value> Unpin for Constant<Value>where
Value: Unpin,
impl<Value> UnsafeUnpin for Constant<Value>where
Value: UnsafeUnpin,
impl<Value> UnwindSafe for Constant<Value>where
Value: 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