pub struct Motion {
pub fast: f64,
pub normal: f64,
pub slow: f64,
pub enter: CubicBezier,
pub exit: CubicBezier,
pub emphasis: CubicBezier,
}Expand description
Durations in seconds and the eases for entering, leaving and emphasis.
Fields§
§fast: f64Short.
normal: f64Ordinary. fade_in uses this.
slow: f64Long.
enter: CubicBezierEase for something appearing.
exit: CubicBezierEase for something leaving.
emphasis: CubicBezierEase for a bump or a pop.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Motion
impl RefUnwindSafe for Motion
impl Send for Motion
impl Sync for Motion
impl Unpin for Motion
impl UnsafeUnpin for Motion
impl UnwindSafe for Motion
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