pub struct Sub<L, R> { /* private fields */ }
Trait Implementations§
Source§impl<L, R> Signal for Sub<L, R>
impl<L, R> Signal for Sub<L, R>
Source§fn clamp<Min, Max>(self, min: Min, max: Max) -> Clamp<Self, Min, Max>
fn clamp<Min, Max>(self, min: Min, max: Max) -> Clamp<Self, Min, Max>
Clamps this signal between
min
and max
. This result of this function is
the same as .max(min).min(max)
.Source§fn map<F, T>(self, map: F) -> Map<Self, F>
fn map<F, T>(self, map: F) -> Map<Self, F>
Maps this signal to another using the given function.
Source§fn filter<F>(self, predicate: F) -> Filter<Self, F>
fn filter<F>(self, predicate: F) -> Filter<Self, F>
Filters values of the signal with the given predicate.
Source§fn filter_map<F, T>(self, predicate: F) -> FilterMap<Self, F>
fn filter_map<F, T>(self, predicate: F) -> FilterMap<Self, F>
Filters and maps a signal to another using the given predicate.
Source§fn cloned<'a, T>(self) -> Cloned<Self>
fn cloned<'a, T>(self) -> Cloned<Self>
Clones the values of this signal. This is useful to turn a
Signal<Type = &T>
into a Signal<Type = T>
.Source§fn inspect<F>(self, inspect: F) -> Inspect<Self, F>
fn inspect<F>(self, inspect: F) -> Inspect<Self, F>
Inspects the values of this signal by calling a function before yielding the value.
Source§fn into_iter(self) -> IntoIter<Self> ⓘwhere
Self: Sized,
fn into_iter(self) -> IntoIter<Self> ⓘwhere
Self: Sized,
Creates an iterator that yields the values of this signal.
Source§fn ease(self, amount: Self::Type) -> Ease<Self>
fn ease(self, amount: Self::Type) -> Ease<Self>
Eases this signal with the given
amount
. A greater amount will make the
the signal smoother and any amount lower than 0.0
will give wierd results.Source§fn lerp<S>(self, other: S, amount: Self::Type) -> Lerp<Self, S>
fn lerp<S>(self, other: S, amount: Self::Type) -> Lerp<Self, S>
Linearly interpolates between this signal and another.
fn wrapping_add<S, RefL, RefR, T>(self, other: S) -> WrappingAdd<T, Self, S>
fn wrapping_sub<S, RefL, RefR, T>(self, other: S) -> WrappingSub<T, Self, S>
fn wrapping_mul<S, RefL, RefR, T>(self, other: S) -> WrappingMul<T, Self, S>
fn wrapping_shr<S, RefL, T>(self, other: S) -> WrappingShr<T, Self, S>
fn wrapping_shl<S, RefL, T>(self, other: S) -> WrappingShl<T, Self, S>
fn saturating_add<S, RefL, RefR, T>(self, other: S) -> SaturatingAdd<T, Self, S>
fn saturating_sub<S, RefL, RefR, T>(self, other: S) -> SaturatingSub<T, Self, S>
fn saturating_mul<S, RefL, RefR, T>(self, other: S) -> SaturatingMul<T, Self, S>
fn checked_add<S, RefL, RefR, T>(self, other: S) -> CheckedAdd<T, Self, S>
fn checked_sub<S, RefL, RefR, T>(self, other: S) -> CheckedSub<T, Self, S>
fn checked_mul<S, RefL, RefR, T>(self, other: S) -> CheckedMul<T, Self, S>
fn checked_shr<S, RefL, T>(self, other: S) -> CheckedShr<T, Self, S>
fn checked_shl<S, RefL, T>(self, other: S) -> CheckedShl<T, Self, S>
fn inv(self) -> Inv<Self>
fn mul_add<M, A>(self, mul: M, add: A) -> MulAdd<Self, M, A>
fn pow<E>(self, exp: E) -> Pow<Self, E>
Source§fn interpolate<F>(self, length: usize, interpolate: F) -> Interpolate<Self, F>
fn interpolate<F>(self, length: usize, interpolate: F) -> Interpolate<Self, F>
Creates a signal that interpolates new values using the given interpolation function.
Auto Trait Implementations§
impl<L, R> Freeze for Sub<L, R>
impl<L, R> RefUnwindSafe for Sub<L, R>where
L: RefUnwindSafe,
R: RefUnwindSafe,
impl<L, R> Send for Sub<L, R>
impl<L, R> Sync for Sub<L, R>
impl<L, R> Unpin for Sub<L, R>
impl<L, R> UnwindSafe for Sub<L, R>where
L: UnwindSafe,
R: 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