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