pub struct AnimationSpec {
pub duration_ms: f32,
pub delay_ms: f32,
pub timing: Timing,
}Expand description
How long a change takes and along which curve.
A role is the default way to say this (MotionRole), and the design system answers
it; this is the escape hatch for a screen whose author has already decided, as CSS
does. Without one, AnimationSpec::STANDARD is used: the standard motion of
Material 3, the length and curve the design systems’ own standard role is built on.
Fields§
§duration_ms: f32§delay_ms: f32§timing: TimingImplementations§
Trait Implementations§
Source§impl Clone for AnimationSpec
impl Clone for AnimationSpec
impl Copy for AnimationSpec
Source§impl Debug for AnimationSpec
impl Debug for AnimationSpec
Source§impl Default for AnimationSpec
impl Default for AnimationSpec
Source§impl PartialEq for AnimationSpec
impl PartialEq for AnimationSpec
impl StructuralPartialEq for AnimationSpec
Auto Trait Implementations§
impl Freeze for AnimationSpec
impl RefUnwindSafe for AnimationSpec
impl Send for AnimationSpec
impl Sync for AnimationSpec
impl Unpin for AnimationSpec
impl UnsafeUnpin for AnimationSpec
impl UnwindSafe for AnimationSpec
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