pub struct ThemeMotion {
pub duration_ms: Option<u32>,
pub easing: Option<String>,
pub reduced_motion: Option<ThemeReducedMotion>,
pub animation: Option<ThemeAnimationMode>,
pub preset: Option<ThemeAnimationPreset>,
pub speed: Option<u16>,
}Fields§
§duration_ms: Option<u32>§easing: Option<String>§reduced_motion: Option<ThemeReducedMotion>§animation: Option<ThemeAnimationMode>§preset: Option<ThemeAnimationPreset>§speed: Option<u16>Implementations§
Source§impl ThemeMotion
impl ThemeMotion
pub fn new() -> Self
pub fn dur(self, duration: Duration) -> Self
pub fn dur_ms(self, duration_ms: u32) -> Self
pub fn ease(self, easing: impl Into<String>) -> Self
pub fn reduced(self, reduced_motion: ThemeReducedMotion) -> Self
pub fn anim(self, animation: ThemeAnimationMode) -> Self
pub fn preset(self, preset: ThemeAnimationPreset) -> Self
pub fn speed(self, speed: u16) -> Self
Trait Implementations§
Source§impl Clone for ThemeMotion
impl Clone for ThemeMotion
Source§fn clone(&self) -> ThemeMotion
fn clone(&self) -> ThemeMotion
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 ThemeMotion
impl Debug for ThemeMotion
Source§impl Default for ThemeMotion
impl Default for ThemeMotion
impl Eq for ThemeMotion
Source§impl PartialEq for ThemeMotion
impl PartialEq for ThemeMotion
Source§fn eq(&self, other: &ThemeMotion) -> bool
fn eq(&self, other: &ThemeMotion) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ThemeMotion
Auto Trait Implementations§
impl Freeze for ThemeMotion
impl RefUnwindSafe for ThemeMotion
impl Send for ThemeMotion
impl Sync for ThemeMotion
impl Unpin for ThemeMotion
impl UnsafeUnpin for ThemeMotion
impl UnwindSafe for ThemeMotion
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