pub struct MotionTokens {
pub duration_instant: Duration,
pub duration_fast: Duration,
pub duration_normal: Duration,
pub duration_slow: Duration,
pub easing_enter: Easing,
pub easing_exit: Easing,
pub easing_move: Easing,
pub spring_control: Spring,
pub spring_move: Spring,
pub distance_short: Rems,
pub distance_medium: Rems,
}Expand description
Semantic motion policy shared by styled components.
Fields§
§duration_instant: Duration§duration_fast: Duration§duration_normal: Duration§duration_slow: Duration§easing_enter: Easing§easing_exit: Easing§easing_move: Easing§spring_control: Spring§spring_move: Spring§distance_short: Rems§distance_medium: RemsTrait Implementations§
Source§impl Clone for MotionTokens
impl Clone for MotionTokens
Source§fn clone(&self) -> MotionTokens
fn clone(&self) -> MotionTokens
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 moreSource§impl Debug for MotionTokens
impl Debug for MotionTokens
Auto Trait Implementations§
impl !RefUnwindSafe for MotionTokens
impl !Send for MotionTokens
impl !Sync for MotionTokens
impl !UnwindSafe for MotionTokens
impl Freeze for MotionTokens
impl Unpin for MotionTokens
impl UnsafeUnpin for MotionTokens
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().