pub struct ActiveAnimation {
pub driver: AnimationDriver,
pub current_value: f64,
pub completed: bool,
}Expand description
Active animation state
Fields§
§driver: AnimationDriver§current_value: f64§completed: boolImplementations§
Source§impl ActiveAnimation
impl ActiveAnimation
Sourcepub fn tween(
from: f64,
to: f64,
start_time: f64,
duration: f64,
easing: Easing,
) -> Self
pub fn tween( from: f64, to: f64, start_time: f64, duration: f64, easing: Easing, ) -> Self
Create a new tween animation
Sourcepub fn spring(spring: Spring, start_time: f64, target: f64) -> Self
pub fn spring(spring: Spring, start_time: f64, target: f64) -> Self
Create a new spring animation
Trait Implementations§
Source§impl Clone for ActiveAnimation
impl Clone for ActiveAnimation
Source§fn clone(&self) -> ActiveAnimation
fn clone(&self) -> ActiveAnimation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ActiveAnimation
impl RefUnwindSafe for ActiveAnimation
impl Send for ActiveAnimation
impl Sync for ActiveAnimation
impl Unpin for ActiveAnimation
impl UnsafeUnpin for ActiveAnimation
impl UnwindSafe for ActiveAnimation
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