pub enum MotionSpec {
Instant,
Spring(Spring),
Tween {
duration_ms: u16,
easing: CubicBezier,
},
}Expand description
Resolved animation timing specification for a state transition.
Variants§
Instant
Complete the transition immediately without interpolation (used for reduced motion).
Spring(Spring)
Physics-based spring transition.
Tween
Fixed-duration cubic Bézier tween.
Fields
§
easing: CubicBezierEasing curve applied across the duration.
Trait Implementations§
Source§impl Clone for MotionSpec
impl Clone for MotionSpec
impl Copy for MotionSpec
Source§impl Debug for MotionSpec
impl Debug for MotionSpec
Source§impl PartialEq for MotionSpec
impl PartialEq for MotionSpec
impl StructuralPartialEq for MotionSpec
Auto Trait Implementations§
impl Forget for MotionSpec
impl Freeze for MotionSpec
impl Move for MotionSpec
impl RefUnwindSafe for MotionSpec
impl Send for MotionSpec
impl Sync for MotionSpec
impl Unpin for MotionSpec
impl UnsafeUnpin for MotionSpec
impl UnwindSafe for MotionSpec
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