[][src]Struct fermium::joystick::SDL_JoystickID

#[repr(transparent)]pub struct SDL_JoystickID(pub i32);

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.

Trait Implementations

impl Clone for SDL_JoystickID[src]

impl Copy for SDL_JoystickID[src]

impl Debug for SDL_JoystickID[src]

impl Default for SDL_JoystickID[src]

impl Eq for SDL_JoystickID[src]

impl Hash for SDL_JoystickID[src]

impl Ord for SDL_JoystickID[src]

impl PartialEq<SDL_JoystickID> for SDL_JoystickID[src]

impl PartialOrd<SDL_JoystickID> for SDL_JoystickID[src]

impl StructuralEq for SDL_JoystickID[src]

impl StructuralPartialEq for SDL_JoystickID[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.