Struct fermium::joystick::SDL_JoystickID
source · #[repr(transparent)]pub struct SDL_JoystickID(pub i32);
Expand description
This is a unique ID for a joystick for the time it is connected to the system.
It is never reused for the lifetime of the application. If the joystick is disconnected and reconnected, it will get a new ID.
The ID value starts at 0 and increments from there.
The value -1 is an invalid ID.
Tuple Fields§
§0: i32
Trait Implementations§
source§impl Clone for SDL_JoystickID
impl Clone for SDL_JoystickID
source§fn clone(&self) -> SDL_JoystickID
fn clone(&self) -> SDL_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 SDL_JoystickID
impl Debug for SDL_JoystickID
source§impl Default for SDL_JoystickID
impl Default for SDL_JoystickID
source§fn default() -> SDL_JoystickID
fn default() -> SDL_JoystickID
Returns the “default value” for a type. Read more
source§impl Hash for SDL_JoystickID
impl Hash for SDL_JoystickID
source§impl Ord for SDL_JoystickID
impl Ord for SDL_JoystickID
source§fn cmp(&self, other: &SDL_JoystickID) -> Ordering
fn cmp(&self, other: &SDL_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<SDL_JoystickID> for SDL_JoystickID
impl PartialEq<SDL_JoystickID> for SDL_JoystickID
source§fn eq(&self, other: &SDL_JoystickID) -> bool
fn eq(&self, other: &SDL_JoystickID) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<SDL_JoystickID> for SDL_JoystickID
impl PartialOrd<SDL_JoystickID> for SDL_JoystickID
source§fn partial_cmp(&self, other: &SDL_JoystickID) -> Option<Ordering>
fn partial_cmp(&self, other: &SDL_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