#[non_exhaustive]pub enum AccelProfile {
Flat,
Adaptive,
}
Expand description
Pointer Acceleration Profile
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Flat
A flat acceleration profile.
Pointer motion is accelerated by a constant (device-specific) factor, depending on the current speed.
Adaptive
An adaptive acceleration profile.
Pointer acceleration depends on the input speed. This is the default profile for most devices.
Trait Implementations§
Source§impl Clone for AccelProfile
impl Clone for AccelProfile
Source§fn clone(&self) -> AccelProfile
fn clone(&self) -> AccelProfile
Returns a copy of the value. Read more
1.0.0 · 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 AccelProfile
impl Debug for AccelProfile
Source§impl Hash for AccelProfile
impl Hash for AccelProfile
Source§impl PartialEq for AccelProfile
impl PartialEq for AccelProfile
impl Copy for AccelProfile
impl Eq for AccelProfile
impl StructuralPartialEq for AccelProfile
Auto Trait Implementations§
impl Freeze for AccelProfile
impl RefUnwindSafe for AccelProfile
impl Send for AccelProfile
impl Sync for AccelProfile
impl Unpin for AccelProfile
impl UnwindSafe for AccelProfile
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