pub enum MotionPreference {
Full,
Reduced,
}Expand description
Whether the reader has asked for less motion, as their platform reported it.
Exhaustive on purpose: it is a two-state answer the caller supplies, and a third state would be a question this crate has not been asked. An enum rather than a bool so a call site reads as what it means.
Variants§
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 Freeze 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