#[repr(i32)]pub enum JoystickId {
Show 16 variants
Joystick1 = 0,
Joystick2 = 1,
Joystick3 = 2,
Joystick4 = 3,
Joystick5 = 4,
Joystick6 = 5,
Joystick7 = 6,
Joystick8 = 7,
Joystick9 = 8,
Joystick10 = 9,
Joystick11 = 10,
Joystick12 = 11,
Joystick13 = 12,
Joystick14 = 13,
Joystick15 = 14,
Joystick16 = 15,
}
Expand description
Joystick identifier tokens.
Variants§
Joystick1 = 0
Joystick2 = 1
Joystick3 = 2
Joystick4 = 3
Joystick5 = 4
Joystick6 = 5
Joystick7 = 6
Joystick8 = 7
Joystick9 = 8
Joystick10 = 9
Joystick11 = 10
Joystick12 = 11
Joystick13 = 12
Joystick14 = 13
Joystick15 = 14
Joystick16 = 15
Implementations§
Source§impl JoystickId
impl JoystickId
Sourcepub fn from_i32(n: i32) -> Option<JoystickId>
pub fn from_i32(n: i32) -> Option<JoystickId>
Converts from i32
.
Trait Implementations§
Source§impl Clone for JoystickId
impl Clone for JoystickId
Source§fn clone(&self) -> JoystickId
fn clone(&self) -> JoystickId
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 JoystickId
impl Debug for JoystickId
Source§impl Hash for JoystickId
impl Hash for JoystickId
Source§impl Ord for JoystickId
impl Ord for JoystickId
Source§fn cmp(&self, other: &JoystickId) -> Ordering
fn cmp(&self, other: &JoystickId) -> 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 JoystickId
impl PartialEq for JoystickId
Source§impl PartialOrd for JoystickId
impl PartialOrd for JoystickId
impl Copy for JoystickId
impl Eq for JoystickId
impl StructuralPartialEq for JoystickId
Auto Trait Implementations§
impl Freeze for JoystickId
impl RefUnwindSafe for JoystickId
impl Send for JoystickId
impl Sync for JoystickId
impl Unpin for JoystickId
impl UnwindSafe for JoystickId
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more