#[repr(transparent)]pub struct INPUT_DEVICE(pub u32);
Expand description
INPUT_DEVICE
to store the raw value.
This is a generic type that exists because the correct value varies depending on the SE, AE , VR environment.
Tuple Fields§
§0: u32
Implementations§
Source§impl INPUT_DEVICE
impl INPUT_DEVICE
Sourcepub const fn as_se(&self) -> Option<INPUT_DEVICE_SE>
pub const fn as_se(&self) -> Option<INPUT_DEVICE_SE>
Try to cast valid enum for SE, AE.
Sourcepub const fn as_vr(&self) -> Option<INPUT_DEVICE_VR>
pub const fn as_vr(&self) -> Option<INPUT_DEVICE_VR>
Try to cast valid enum for VR.
Trait Implementations§
Source§impl Clone for INPUT_DEVICE
impl Clone for INPUT_DEVICE
Source§fn clone(&self) -> INPUT_DEVICE
fn clone(&self) -> INPUT_DEVICE
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 INPUT_DEVICE
impl Debug for INPUT_DEVICE
Source§impl From<INPUT_DEVICE_SE> for INPUT_DEVICE
impl From<INPUT_DEVICE_SE> for INPUT_DEVICE
Source§fn from(value: INPUT_DEVICE_SE) -> Self
fn from(value: INPUT_DEVICE_SE) -> Self
Converts to this type from the input type.
Source§impl From<INPUT_DEVICE_VR> for INPUT_DEVICE
impl From<INPUT_DEVICE_VR> for INPUT_DEVICE
Source§fn from(value: INPUT_DEVICE_VR) -> Self
fn from(value: INPUT_DEVICE_VR) -> Self
Converts to this type from the input type.
Source§impl Hash for INPUT_DEVICE
impl Hash for INPUT_DEVICE
Source§impl Ord for INPUT_DEVICE
impl Ord for INPUT_DEVICE
Source§fn cmp(&self, other: &INPUT_DEVICE) -> Ordering
fn cmp(&self, other: &INPUT_DEVICE) -> 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 INPUT_DEVICE
impl PartialEq for INPUT_DEVICE
Source§impl PartialOrd for INPUT_DEVICE
impl PartialOrd for INPUT_DEVICE
impl Copy for INPUT_DEVICE
impl Eq for INPUT_DEVICE
impl StructuralPartialEq for INPUT_DEVICE
Auto Trait Implementations§
impl Freeze for INPUT_DEVICE
impl RefUnwindSafe for INPUT_DEVICE
impl Send for INPUT_DEVICE
impl Sync for INPUT_DEVICE
impl Unpin for INPUT_DEVICE
impl UnwindSafe for INPUT_DEVICE
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