#[repr(u16)]pub enum UInputKind {
Unknown0 = 0,
ForceFeedbackUpload = 1,
ForceFeedbackErase = 2,
}
Expand description
UInput feedback events.
Variants§
Implementations§
Source§impl UInputKind
impl UInputKind
Sourcepub fn iter() -> EnumIterator<Self> ⓘ
pub fn iter() -> EnumIterator<Self> ⓘ
An iterator over all values of the enum.
Source§impl UInputKind
impl UInputKind
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 UInputKind
impl BitmaskTrait for UInputKind
Source§type Index = UInputKind
type Index = UInputKind
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 UInputKind
impl Clone for UInputKind
Source§fn clone(&self) -> UInputKind
fn clone(&self) -> UInputKind
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 UInputKind
impl Debug for UInputKind
Source§impl<'de> Deserialize<'de> for UInputKind
impl<'de> Deserialize<'de> for UInputKind
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<UInputKind> for u16
impl From<UInputKind> for u16
Source§fn from(v: UInputKind) -> Self
fn from(v: UInputKind) -> Self
Converts to this type from the input type.
Source§impl Hash for UInputKind
impl Hash for UInputKind
Source§impl IterableEnum for UInputKind
impl IterableEnum for UInputKind
Source§impl Ord for UInputKind
impl Ord for UInputKind
Source§fn cmp(&self, other: &UInputKind) -> Ordering
fn cmp(&self, other: &UInputKind) -> 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 UInputKind
impl PartialEq for UInputKind
Source§impl PartialOrd for UInputKind
impl PartialOrd for UInputKind
Source§impl Serialize for UInputKind
impl Serialize for UInputKind
Source§impl TryFrom<u16> for UInputKind
impl TryFrom<u16> for UInputKind
impl Copy for UInputKind
impl Eq for UInputKind
impl StructuralPartialEq for UInputKind
Auto Trait Implementations§
impl Freeze for UInputKind
impl RefUnwindSafe for UInputKind
impl Send for UInputKind
impl Sync for UInputKind
impl Unpin for UInputKind
impl UnwindSafe for UInputKind
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