pub enum MotionPreference {
Full,
Reduced,
Off,
}Expand description
How much motion the user wants to see.
Operating systems expose this as an accessibility setting (Windows “Show
animations in Windows”, macOS “Reduce motion”, the web’s
prefers-reduced-motion). Motion can trigger discomfort, so widgets honor
it by dropping movement rather than just shortening it.
Variants§
Full
Play every animation.
Reduced
Keep fades and color changes, but drop movement: surfaces fade in place instead of sliding, and sliding indicators jump to their destination.
Off
Skip animations: every transition finishes immediately.
Implementations§
Trait Implementations§
Source§impl Clone for MotionPreference
impl Clone for MotionPreference
impl Copy for MotionPreference
Source§impl Debug for MotionPreference
impl Debug for MotionPreference
Source§impl Default for MotionPreference
impl Default for MotionPreference
impl Eq for MotionPreference
Source§impl Hash for MotionPreference
impl Hash for MotionPreference
Source§impl PartialEq for MotionPreference
impl PartialEq for MotionPreference
impl StructuralPartialEq for MotionPreference
Auto Trait Implementations§
impl Forget for MotionPreference
impl Freeze for MotionPreference
impl Move for MotionPreference
impl RefUnwindSafe for MotionPreference
impl Send for MotionPreference
impl Sync for MotionPreference
impl Unpin for MotionPreference
impl UnsafeUnpin for MotionPreference
impl UnwindSafe for MotionPreference
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