Enum arcdps::extras::keybinds::DeviceType
source · #[repr(i32)]pub enum DeviceType {
Unset = 0,
Mouse = 1,
Keyboard = 2,
}
Expand description
Device type.
Variants§
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<'de> Deserialize<'de> for DeviceType
impl<'de> Deserialize<'de> for DeviceType
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 Display for DeviceType
impl Display for DeviceType
source§impl<'_derivative_strum> From<&'_derivative_strum DeviceType> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum DeviceType> for &'static str
source§fn from(x: &'_derivative_strum DeviceType) -> &'static str
fn from(x: &'_derivative_strum DeviceType) -> &'static str
Converts to this type from the input type.
source§impl From<DeviceType> for &'static str
impl From<DeviceType> for &'static str
source§fn from(x: DeviceType) -> &'static str
fn from(x: DeviceType) -> &'static str
Converts to this type from the input type.
source§impl From<DeviceType> for i32
impl From<DeviceType> for i32
source§fn from(enum_value: DeviceType) -> Self
fn from(enum_value: DeviceType) -> Self
Converts to this type from the input type.
source§impl Hash for DeviceType
impl Hash for DeviceType
source§impl IntoEnumIterator for DeviceType
impl IntoEnumIterator for DeviceType
type Iterator = DeviceTypeIter
fn iter() -> DeviceTypeIter ⓘ
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
source§impl Serialize for DeviceType
impl Serialize for DeviceType
source§impl TryFrom<i32> for DeviceType
impl TryFrom<i32> for DeviceType
source§impl TryFromPrimitive for DeviceType
impl TryFromPrimitive for DeviceType
source§impl VariantNames for DeviceType
impl VariantNames 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
)