#[repr(u8)]pub enum InputFamily {
Keyboard = 0,
Mouse = 1,
Gamepad = 2,
}Variants§
Implementations§
Source§impl InputFamily
impl InputFamily
pub fn digital_count(&self) -> usize
pub fn analog_count(&self) -> usize
Trait Implementations§
Source§impl Clone for InputFamily
impl Clone for InputFamily
Source§fn clone(&self) -> InputFamily
fn clone(&self) -> InputFamily
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 moreSource§impl Debug for InputFamily
impl Debug for InputFamily
Source§impl<'de> Deserialize<'de> for InputFamily
impl<'de> Deserialize<'de> for InputFamily
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 Ord for InputFamily
impl Ord for InputFamily
Source§fn cmp(&self, other: &InputFamily) -> Ordering
fn cmp(&self, other: &InputFamily) -> 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 InputFamily
impl PartialEq for InputFamily
Source§impl PartialOrd for InputFamily
impl PartialOrd for InputFamily
Source§impl Serialize for InputFamily
impl Serialize for InputFamily
Source§impl TryFrom<u8> for InputFamily
impl TryFrom<u8> for InputFamily
Source§type Error = TryFromPrimitiveError<InputFamily>
type Error = TryFromPrimitiveError<InputFamily>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for InputFamily
impl TryFromPrimitive for InputFamily
const NAME: &'static str = "InputFamily"
type Primitive = u8
type Error = TryFromPrimitiveError<InputFamily>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for InputFamily
impl Eq for InputFamily
impl StructuralPartialEq for InputFamily
Auto Trait Implementations§
impl Freeze for InputFamily
impl RefUnwindSafe for InputFamily
impl Send for InputFamily
impl Sync for InputFamily
impl Unpin for InputFamily
impl UnwindSafe for InputFamily
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