Enum input_linux::InputProperty
source · #[repr(u16)]pub enum InputProperty {
Show 32 variants
Pointer = 0,
Direct = 1,
ButtonPad = 2,
SemiMultiTouch = 3,
TopButtonPad = 4,
PointingStick = 5,
Accelerometer = 6,
Unknown07 = 7,
Unknown08 = 8,
Unknown09 = 9,
Unknown0A = 10,
Unknown0B = 11,
Unknown0C = 12,
Unknown0D = 13,
Unknown0E = 14,
Unknown0F = 15,
Unknown10 = 16,
Unknown11 = 17,
Unknown12 = 18,
Unknown13 = 19,
Unknown14 = 20,
Unknown15 = 21,
Unknown16 = 22,
Unknown17 = 23,
Unknown18 = 24,
Unknown19 = 25,
Unknown1A = 26,
Unknown1B = 27,
Unknown1C = 28,
Unknown1D = 29,
Unknown1E = 30,
Unknown1F = 31,
}
Expand description
Device properties and quirks.
Variants§
Pointer = 0
Direct = 1
ButtonPad = 2
SemiMultiTouch = 3
TopButtonPad = 4
PointingStick = 5
Accelerometer = 6
Unknown07 = 7
Unknown08 = 8
Unknown09 = 9
Unknown0A = 10
Unknown0B = 11
Unknown0C = 12
Unknown0D = 13
Unknown0E = 14
Unknown0F = 15
Unknown10 = 16
Unknown11 = 17
Unknown12 = 18
Unknown13 = 19
Unknown14 = 20
Unknown15 = 21
Unknown16 = 22
Unknown17 = 23
Unknown18 = 24
Unknown19 = 25
Unknown1A = 26
Unknown1B = 27
Unknown1C = 28
Unknown1D = 29
Unknown1E = 30
Unknown1F = 31
Implementations§
source§impl InputProperty
impl InputProperty
sourcepub fn iter() -> EnumIterator<Self> ⓘ
pub fn iter() -> EnumIterator<Self> ⓘ
An iterator over all values of the enum.
source§impl InputProperty
impl InputProperty
sourcepub fn from_code(code: u16) -> Result<Self, RangeError>
pub fn from_code(code: u16) -> Result<Self, RangeError>
Instantiates the enum from a raw code value.
Trait Implementations§
source§impl BitmaskTrait for InputProperty
impl BitmaskTrait for InputProperty
§type Index = InputProperty
type Index = InputProperty
The type that the bitmask can be indexed by.
source§fn array_default() -> Self::Array
fn array_default() -> Self::Array
The default empty state of the bitmask.
source§fn array_slice(array: &Self::Array) -> &[u8] ⓘ
fn array_slice(array: &Self::Array) -> &[u8] ⓘ
A representation of the bitmask as a slice of bytes.
source§impl Clone for InputProperty
impl Clone for InputProperty
source§fn clone(&self) -> InputProperty
fn clone(&self) -> InputProperty
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 InputProperty
impl Debug for InputProperty
source§impl<'de> Deserialize<'de> for InputProperty
impl<'de> Deserialize<'de> for InputProperty
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<InputProperty> for u16
impl From<InputProperty> for u16
source§fn from(v: InputProperty) -> Self
fn from(v: InputProperty) -> Self
Converts to this type from the input type.
source§impl Hash for InputProperty
impl Hash for InputProperty
source§impl IterableEnum for InputProperty
impl IterableEnum for InputProperty
source§impl Ord for InputProperty
impl Ord for InputProperty
source§fn cmp(&self, other: &InputProperty) -> Ordering
fn cmp(&self, other: &InputProperty) -> 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 InputProperty
impl PartialEq for InputProperty
source§impl PartialOrd for InputProperty
impl PartialOrd for InputProperty
source§impl Serialize for InputProperty
impl Serialize for InputProperty
source§impl TryFrom<u16> for InputProperty
impl TryFrom<u16> for InputProperty
impl Copy for InputProperty
impl Eq for InputProperty
impl StructuralPartialEq for InputProperty
Auto Trait Implementations§
impl Freeze for InputProperty
impl RefUnwindSafe for InputProperty
impl Send for InputProperty
impl Sync for InputProperty
impl Unpin for InputProperty
impl UnwindSafe for InputProperty
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)