Enum glfw::JoystickId
source · #[repr(i32)]
pub enum JoystickId {
Show 16 variants
Joystick1,
Joystick2,
Joystick3,
Joystick4,
Joystick5,
Joystick6,
Joystick7,
Joystick8,
Joystick9,
Joystick10,
Joystick11,
Joystick12,
Joystick13,
Joystick14,
Joystick15,
Joystick16,
}
Expand description
Joystick identifier tokens.
Variants§
Joystick1
Joystick2
Joystick3
Joystick4
Joystick5
Joystick6
Joystick7
Joystick8
Joystick9
Joystick10
Joystick11
Joystick12
Joystick13
Joystick14
Joystick15
Joystick16
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 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 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<JoystickId> for JoystickId
impl PartialEq<JoystickId> for JoystickId
source§fn eq(&self, other: &JoystickId) -> bool
fn eq(&self, other: &JoystickId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<JoystickId> for JoystickId
impl PartialOrd<JoystickId> for JoystickId
source§fn partial_cmp(&self, other: &JoystickId) -> Option<Ordering>
fn partial_cmp(&self, other: &JoystickId) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more