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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.