Struct KeyEventDeviceType
#[repr(transparent)]pub struct KeyEventDeviceType(pub i32);Tuple Fields§
§0: i32Implementations§
§impl KeyEventDeviceType
impl KeyEventDeviceType
pub const Undefined: Self
pub const HardwareKeyboard: Self
pub const SoftwareKeyboard: Self
pub const Gamepad: Self
pub const Injection: Self
Trait Implementations§
§impl Clone for KeyEventDeviceType
impl Clone for KeyEventDeviceType
§fn clone(&self) -> KeyEventDeviceType
fn clone(&self) -> KeyEventDeviceType
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 more§impl Debug for KeyEventDeviceType
impl Debug for KeyEventDeviceType
§impl Default for KeyEventDeviceType
impl Default for KeyEventDeviceType
§fn default() -> KeyEventDeviceType
fn default() -> KeyEventDeviceType
Returns the “default value” for a type. Read more
§impl PartialEq for KeyEventDeviceType
impl PartialEq for KeyEventDeviceType
impl Copy for KeyEventDeviceType
impl Eq for KeyEventDeviceType
impl StructuralPartialEq for KeyEventDeviceType
Auto Trait Implementations§
impl Freeze for KeyEventDeviceType
impl RefUnwindSafe for KeyEventDeviceType
impl Send for KeyEventDeviceType
impl Sync for KeyEventDeviceType
impl Unpin for KeyEventDeviceType
impl UnwindSafe for KeyEventDeviceType
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