pub enum AnimationDriver {
Tween {
from: f64,
to: f64,
start_time: f64,
duration: f64,
easing: Easing,
},
Spring {
spring: Spring,
start_time: f64,
target: f64,
},
Decay {
decay: Decay,
start_time: f64,
initial_value: f64,
},
}Expand description
What drives the animation
Variants§
Trait Implementations§
Source§impl Clone for AnimationDriver
impl Clone for AnimationDriver
Source§fn clone(&self) -> AnimationDriver
fn clone(&self) -> AnimationDriver
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 AnimationDriver
impl RefUnwindSafe for AnimationDriver
impl Send for AnimationDriver
impl Sync for AnimationDriver
impl Unpin for AnimationDriver
impl UnsafeUnpin for AnimationDriver
impl UnwindSafe for AnimationDriver
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