pub struct Animatable<T: SpringScalar + 'static> { /* private fields */ }Expand description
Generic animatable value holder.
Implementations§
Source§impl<T: SpringScalar + 'static> Animatable<T>
impl<T: SpringScalar + 'static> Animatable<T>
Sourcepub fn new(initial: T, runtime: RuntimeHandle) -> Self
pub fn new(initial: T, runtime: RuntimeHandle) -> Self
Create a new animatable with the given initial value.
Sourcepub fn animateTo(&mut self, target: T, animation: AnimationType)
pub fn animateTo(&mut self, target: T, animation: AnimationType)
Animate to the target value using the specified animation.
Sourcepub fn animation_type(&self) -> AnimationType
pub fn animation_type(&self) -> AnimationType
Return the animation spec currently driving this animatable.
Trait Implementations§
Source§impl<T: SpringScalar + 'static> Clone for Animatable<T>
impl<T: SpringScalar + 'static> Clone for Animatable<T>
Auto Trait Implementations§
impl<T> !RefUnwindSafe for Animatable<T>
impl<T> !Send for Animatable<T>
impl<T> !Sync for Animatable<T>
impl<T> !UnwindSafe for Animatable<T>
impl<T> Freeze for Animatable<T>
impl<T> Unpin for Animatable<T>
impl<T> UnsafeUnpin for Animatable<T>
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