pub struct Curved<A> { /* private fields */ }Expand description
The rest of the animation layer: tweens chained and curved, the scroll simulations and
their constants.
An Animatable whose progress is shaped by a Curve first — the result of
Animatable::curved.
Trait Implementations§
Source§impl<A> Animatable for Curved<A>where
A: Animatable,
impl<A> Animatable for Curved<A>where
A: Animatable,
Source§type Output = <A as Animatable>::Output
type Output = <A as Animatable>::Output
The type of value produced (colour, size, number).
Source§fn evaluate(&self, t: f32) -> <Curved<A> as Animatable>::Output
fn evaluate(&self, t: f32) -> <Curved<A> as Animatable>::Output
The value at progress
t ∈ [0,1].Source§fn curved(self, curve: Curve) -> Curved<Self>where
Self: Sized,
fn curved(self, curve: Curve) -> Curved<Self>where
Self: Sized,
Chains a
Curve before evaluation: t is shaped by the curve first,
so a single linear progress value can drive a value with non-linear timing.Source§fn animate<'a>(
&'a self,
controller: &'a AnimationController,
) -> Animation<'a, Self>where
Self: Sized,
fn animate<'a>(
&'a self,
controller: &'a AnimationController,
) -> Animation<'a, Self>where
Self: Sized,
Binds this animation to an
AnimationController’s progress, producing an
Animation whose value() follows the controller’s current value. The
controller’s value is normalised by its own bounds, so a non-unit
controller still drives a full [0,1].Auto Trait Implementations§
impl<A> Freeze for Curved<A>where
A: Freeze,
impl<A> RefUnwindSafe for Curved<A>where
A: RefUnwindSafe,
impl<A> Send for Curved<A>where
A: Send,
impl<A> Sync for Curved<A>where
A: Sync,
impl<A> Unpin for Curved<A>where
A: Unpin,
impl<A> UnsafeUnpin for Curved<A>where
A: UnsafeUnpin,
impl<A> UnwindSafe for Curved<A>where
A: 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