#[non_exhaustive]pub enum InputDeviceType {
PointerDevice,
KeyboardDevice,
ExtensionDevice,
JoystickDevice,
TabletDevice,
TouchpadDevice,
TouchscreenDevice,
PenDevice,
EraserDevice,
CursorDevice,
NDeviceTypes,
}
Expand description
The types of input devices available.
The InputDeviceType
enumeration can be extended at later
date; not every platform supports every input device type.
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.
PointerDevice
A pointer device
KeyboardDevice
A keyboard device
ExtensionDevice
A generic extension device
JoystickDevice
A joystick device
TabletDevice
A tablet device
TouchpadDevice
A touchpad device
TouchscreenDevice
A touch screen device
PenDevice
A pen device
EraserDevice
An eraser device
CursorDevice
A cursor device
NDeviceTypes
The number of device types
Trait Implementations§
Source§impl Clone for InputDeviceType
impl Clone for InputDeviceType
Source§fn clone(&self) -> InputDeviceType
fn clone(&self) -> InputDeviceType
Returns a duplicate 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 InputDeviceType
impl Debug for InputDeviceType
Source§impl Display for InputDeviceType
impl Display for InputDeviceType
Source§impl<'a> FromValue<'a> for InputDeviceType
impl<'a> FromValue<'a> for InputDeviceType
Source§unsafe fn from_value(value: &Value) -> Self
unsafe fn from_value(value: &Value) -> Self
Safety Read more
Source§impl<'a> FromValueOptional<'a> for InputDeviceType
impl<'a> FromValueOptional<'a> for InputDeviceType
Source§impl Hash for InputDeviceType
impl Hash for InputDeviceType
Source§impl Ord for InputDeviceType
impl Ord for InputDeviceType
Source§fn cmp(&self, other: &InputDeviceType) -> Ordering
fn cmp(&self, other: &InputDeviceType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for InputDeviceType
impl PartialEq for InputDeviceType
Source§impl PartialOrd for InputDeviceType
impl PartialOrd for InputDeviceType
Source§impl SetValue for InputDeviceType
impl SetValue for InputDeviceType
Source§impl StaticType for InputDeviceType
impl StaticType for InputDeviceType
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Copy for InputDeviceType
impl Eq for InputDeviceType
impl StructuralPartialEq for InputDeviceType
Auto Trait Implementations§
impl Freeze for InputDeviceType
impl RefUnwindSafe for InputDeviceType
impl Send for InputDeviceType
impl Sync for InputDeviceType
impl Unpin for InputDeviceType
impl UnwindSafe for InputDeviceType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.