pub enum InterpolationMode {
Curve {
function: AnimationInterpolationFunction,
duration_secs: f32,
},
Spring(Spring),
}Expand description
Specifies how an animated value transitions over time.
It can either be driven by a time-based curve (duration-based) or by a physics-based spring (velocity and target-based).
Variants§
Curve
Duration-based easing. Not interruptible without a discontinuity.
Fields
§
function: AnimationInterpolationFunctionThe CSS easing curve.
Spring(Spring)
Physics-based. Interruptible with velocity continuity.
Trait Implementations§
Source§impl Clone for InterpolationMode
impl Clone for InterpolationMode
Source§fn clone(&self) -> InterpolationMode
fn clone(&self) -> InterpolationMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for InterpolationMode
Source§impl Debug for InterpolationMode
impl Debug for InterpolationMode
Source§impl Default for InterpolationMode
impl Default for InterpolationMode
Source§impl PartialEq for InterpolationMode
impl PartialEq for InterpolationMode
impl StructuralPartialEq for InterpolationMode
Auto Trait Implementations§
impl Freeze for InterpolationMode
impl RefUnwindSafe for InterpolationMode
impl Send for InterpolationMode
impl Sync for InterpolationMode
impl Unpin for InterpolationMode
impl UnsafeUnpin for InterpolationMode
impl UnwindSafe for InterpolationMode
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