Struct x11rb_protocol::protocol::xinput::DeviceType
source · pub struct DeviceType(u16);
Tuple Fields§
§0: u16
Implementations§
source§impl DeviceType
impl DeviceType
pub const MASTER_POINTER: Self = _
pub const MASTER_KEYBOARD: Self = _
pub const SLAVE_POINTER: Self = _
pub const SLAVE_KEYBOARD: Self = _
pub const FLOATING_SLAVE: Self = _
Trait Implementations§
source§impl Clone for DeviceType
impl Clone for DeviceType
source§fn clone(&self) -> DeviceType
fn clone(&self) -> DeviceType
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 DeviceType
impl Debug for DeviceType
source§impl Default for DeviceType
impl Default for DeviceType
source§fn default() -> DeviceType
fn default() -> DeviceType
Returns the “default value” for a type. Read more
source§impl From<DeviceType> for Option<u16>
impl From<DeviceType> for Option<u16>
source§fn from(input: DeviceType) -> Self
fn from(input: DeviceType) -> Self
Converts to this type from the input type.
source§impl From<DeviceType> for Option<u32>
impl From<DeviceType> for Option<u32>
source§fn from(input: DeviceType) -> Self
fn from(input: DeviceType) -> Self
Converts to this type from the input type.
source§impl From<DeviceType> for u16
impl From<DeviceType> for u16
source§fn from(input: DeviceType) -> Self
fn from(input: DeviceType) -> Self
Converts to this type from the input type.
source§impl From<DeviceType> for u32
impl From<DeviceType> for u32
source§fn from(input: DeviceType) -> Self
fn from(input: DeviceType) -> Self
Converts to this type from the input type.
source§impl From<u16> for DeviceType
impl From<u16> for DeviceType
source§impl From<u8> for DeviceType
impl From<u8> for DeviceType
source§impl Hash for DeviceType
impl Hash for DeviceType
source§impl Ord for DeviceType
impl Ord for DeviceType
source§fn cmp(&self, other: &DeviceType) -> Ordering
fn cmp(&self, other: &DeviceType) -> 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 DeviceType
impl PartialEq for DeviceType
source§impl PartialOrd for DeviceType
impl PartialOrd for DeviceType
impl Copy for DeviceType
impl Eq for DeviceType
impl StructuralPartialEq for DeviceType
Auto Trait Implementations§
impl Freeze for DeviceType
impl RefUnwindSafe for DeviceType
impl Send for DeviceType
impl Sync for DeviceType
impl Unpin for DeviceType
impl UnwindSafe for DeviceType
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
)