pub struct MotionDurations {
pub instant: f64,
pub fast: f64,
pub base: f64,
pub slow: f64,
pub deliberate: f64,
}Expand description
Named duration tokens, in milliseconds.
Glyph’s motion language is bezier/duration-authored (unlike the
spring-authored presets above), so a MotionScheme carries this
five-slot duration vocabulary alongside the six spring presets — see
MotionScheme::neutral for this crate’s own mapping, and
frust-material/frust-cupertino’s own tokens modules for their
per-baseline mappings and sources.
Fields§
§instant: f64§fast: f64§base: f64§slow: f64§deliberate: f64Trait Implementations§
Source§impl Clone for MotionDurations
impl Clone for MotionDurations
impl Copy for MotionDurations
Source§impl Debug for MotionDurations
impl Debug for MotionDurations
Source§impl PartialEq for MotionDurations
impl PartialEq for MotionDurations
impl StructuralPartialEq for MotionDurations
Auto Trait Implementations§
impl Freeze for MotionDurations
impl RefUnwindSafe for MotionDurations
impl Send for MotionDurations
impl Sync for MotionDurations
impl Unpin for MotionDurations
impl UnsafeUnpin for MotionDurations
impl UnwindSafe for MotionDurations
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.