#[non_exhaustive]#[repr(u8)]pub enum WheelResolution {
Low = 0,
High = 1,
}Expand description
Represents the resolution of the hi-res wheel.
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.
Trait Implementations§
Source§impl Clone for WheelResolution
impl Clone for WheelResolution
Source§fn clone(&self) -> WheelResolution
fn clone(&self) -> WheelResolution
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 WheelResolution
Source§impl Debug for WheelResolution
impl Debug for WheelResolution
impl Eq for WheelResolution
Source§impl From<WheelResolution> for u8
impl From<WheelResolution> for u8
Source§fn from(enum_value: WheelResolution) -> Self
fn from(enum_value: WheelResolution) -> Self
Converts to this type from the input type.
Source§impl Hash for WheelResolution
impl Hash for WheelResolution
Source§impl PartialEq for WheelResolution
impl PartialEq for WheelResolution
Source§fn eq(&self, other: &WheelResolution) -> bool
fn eq(&self, other: &WheelResolution) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WheelResolution
Source§impl TryFrom<u8> for WheelResolution
impl TryFrom<u8> for WheelResolution
Source§type Error = TryFromPrimitiveError<WheelResolution>
type Error = TryFromPrimitiveError<WheelResolution>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for WheelResolution
impl TryFromPrimitive for WheelResolution
const NAME: &'static str = "WheelResolution"
type Primitive = u8
type Error = TryFromPrimitiveError<WheelResolution>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for WheelResolution
impl RefUnwindSafe for WheelResolution
impl Send for WheelResolution
impl Sync for WheelResolution
impl Unpin for WheelResolution
impl UnsafeUnpin for WheelResolution
impl UnwindSafe for WheelResolution
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