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

Tuple Fields§

§0: i32

Implementations§

§

impl GameControllerButtonLabel

pub const None: Self = _

pub const XboxBack: Self = _

pub const XboxStart: Self = _

pub const XboxMenu: Self = _

pub const XboxView: Self = _

pub const XboxUp: Self = _

pub const XboxDown: Self = _

pub const XboxLeft: Self = _

pub const XboxRight: Self = _

pub const XboxA: Self = _

pub const XboxB: Self = _

pub const XboxX: Self = _

pub const XboxY: Self = _

pub const XboxLeftBumper: Self = _

pub const XboxLeftTrigger: Self = _

pub const XboxLeftStickButton: Self = _

pub const XboxRightBumper: Self = _

pub const XboxRightTrigger: Self = _

pub const XboxRightStickButton: Self = _

pub const XboxPaddle1: Self = _

pub const XboxPaddle2: Self = _

pub const XboxPaddle3: Self = _

pub const XboxPaddle4: Self = _

pub const Mode: Self = _

pub const Select: Self = _

pub const Menu: Self = _

pub const View: Self = _

pub const Back: Self = _

pub const Start: Self = _

pub const Options: Self = _

pub const Share: Self = _

pub const Up: Self = _

pub const Down: Self = _

pub const Left: Self = _

pub const Right: Self = _

pub const LetterA: Self = _

pub const LetterB: Self = _

pub const LetterC: Self = _

pub const LetterL: Self = _

pub const LetterR: Self = _

pub const LetterX: Self = _

pub const LetterY: Self = _

pub const LetterZ: Self = _

pub const Cross: Self = _

pub const Circle: Self = _

pub const Square: Self = _

pub const Triangle: Self = _

pub const LeftBumper: Self = _

pub const LeftTrigger: Self = _

pub const LeftStickButton: Self = _

pub const Left1: Self = _

pub const Left2: Self = _

pub const Left3: Self = _

pub const RightBumper: Self = _

pub const RightTrigger: Self = _

pub const RightStickButton: Self = _

pub const Right1: Self = _

pub const Right2: Self = _

pub const Right3: Self = _

pub const Paddle1: Self = _

pub const Paddle2: Self = _

pub const Paddle3: Self = _

pub const Paddle4: Self = _

pub const Plus: Self = _

pub const Minus: Self = _

pub const DownLeftArrow: Self = _

pub const DialLeft: Self = _

pub const DialRight: Self = _

pub const Suspension: Self = _

Trait Implementations§

§

impl Clone for GameControllerButtonLabel

§

fn clone(&self) -> GameControllerButtonLabel

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for GameControllerButtonLabel

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
§

impl Default for GameControllerButtonLabel

§

fn default() -> GameControllerButtonLabel

Returns the “default value” for a type. Read more
§

impl PartialEq for GameControllerButtonLabel

§

fn eq(&self, other: &GameControllerButtonLabel) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl Copy for GameControllerButtonLabel

§

impl Eq for GameControllerButtonLabel

§

impl StructuralPartialEq for GameControllerButtonLabel

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.