#[non_exhaustive]#[repr(u8)]pub enum RollerType {
Standard = 1,
ThreeG = 3,
MicroRatchet = 4,
Touchpad = 5,
TouchpadNaturalDefault = 6,
}Expand description
Roller type reported by VerticalScrolling.
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.
Standard = 1
Standard one- or two-dimensional roller.
ThreeG = 3
3G roller.
MicroRatchet = 4
Micro-ratchet roller.
Touchpad = 5
Touchpad scrolling.
TouchpadNaturalDefault = 6
Touchpad with natural scrolling enabled by default.
Trait Implementations§
Source§impl Clone for RollerType
impl Clone for RollerType
Source§fn clone(&self) -> RollerType
fn clone(&self) -> RollerType
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 moreimpl Copy for RollerType
Source§impl Debug for RollerType
impl Debug for RollerType
impl Eq for RollerType
Source§impl Hash for RollerType
impl Hash for RollerType
Source§impl PartialEq for RollerType
impl PartialEq for RollerType
impl StructuralPartialEq for RollerType
Source§impl TryFrom<u8> for RollerType
impl TryFrom<u8> for RollerType
Source§type Error = TryFromPrimitiveError<RollerType>
type Error = TryFromPrimitiveError<RollerType>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for RollerType
impl TryFromPrimitive for RollerType
const NAME: &'static str = "RollerType"
type Primitive = u8
type Error = TryFromPrimitiveError<RollerType>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for RollerType
impl RefUnwindSafe for RollerType
impl Send for RollerType
impl Sync for RollerType
impl Unpin for RollerType
impl UnsafeUnpin for RollerType
impl UnwindSafe for RollerType
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