pub struct Animation<'a, A>where
A: Animatable,{ /* private fields */ }Expand description
The rest of the animation layer: tweens chained and curved, the scroll simulations and
their constants.
A live typed value: an Animatable bound to an AnimationController
(the result of Animatable::animate). value() samples the controller at the
present instant — this is what the view reads at paint time.
Implementations§
Source§impl<A> Animation<'_, A>where
A: Animatable,
impl<A> Animation<'_, A>where
A: Animatable,
Sourcepub fn value(&self) -> <A as Animatable>::Output
pub fn value(&self) -> <A as Animatable>::Output
The current typed value: the controller’s normalised progress, evaluated.
Sourcepub fn is_animating(&self) -> bool
pub fn is_animating(&self) -> bool
true while the underlying controller is still animating.
Auto Trait Implementations§
impl<'a, A> !RefUnwindSafe for Animation<'a, A>
impl<'a, A> !Send for Animation<'a, A>
impl<'a, A> !Sync for Animation<'a, A>
impl<'a, A> !UnwindSafe for Animation<'a, A>
impl<'a, A> Freeze for Animation<'a, A>
impl<'a, A> Unpin for Animation<'a, A>
impl<'a, A> UnsafeUnpin for Animation<'a, A>where
&'a A: UnsafeUnpin,
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