#[repr(u16)]pub enum GamepadButton {
Show 16 variants
A = 1,
B = 2,
X = 4,
Y = 8,
Up = 16,
Down = 32,
Left = 64,
Right = 128,
L1 = 256,
L2 = 512,
L3 = 1_024,
R1 = 2_048,
R2 = 4_096,
R3 = 8_192,
Select = 16_384,
Start = 32_768,
}
Variants§
A = 1
B = 2
X = 4
Y = 8
Up = 16
Down = 32
Left = 64
Right = 128
L1 = 256
L2 = 512
L3 = 1_024
R1 = 2_048
R2 = 4_096
R3 = 8_192
Select = 16_384
Start = 32_768
Trait Implementations§
Source§impl BitAnd<GamepadButton> for GamepadButtonMask
impl BitAnd<GamepadButton> for GamepadButtonMask
Source§type Output = GamepadButtonMask
type Output = GamepadButtonMask
The resulting type after applying the
&
operator.Source§impl BitAnd<GamepadButtonMask> for GamepadButton
impl BitAnd<GamepadButtonMask> for GamepadButton
Source§type Output = GamepadButtonMask
type Output = GamepadButtonMask
The resulting type after applying the
&
operator.Source§impl BitAnd for GamepadButton
impl BitAnd for GamepadButton
Source§type Output = GamepadButtonMask
type Output = GamepadButtonMask
The resulting type after applying the
&
operator.Source§impl BitAndAssign<GamepadButton> for GamepadButtonMask
impl BitAndAssign<GamepadButton> for GamepadButtonMask
Source§fn bitand_assign(&mut self, other: GamepadButton)
fn bitand_assign(&mut self, other: GamepadButton)
Performs the
&=
operation. Read moreSource§impl BitOr<GamepadButton> for GamepadButtonMask
impl BitOr<GamepadButton> for GamepadButtonMask
Source§type Output = GamepadButtonMask
type Output = GamepadButtonMask
The resulting type after applying the
|
operator.Source§impl BitOr<GamepadButtonMask> for GamepadButton
impl BitOr<GamepadButtonMask> for GamepadButton
Source§type Output = GamepadButtonMask
type Output = GamepadButtonMask
The resulting type after applying the
|
operator.Source§impl BitOr for GamepadButton
impl BitOr for GamepadButton
Source§type Output = GamepadButtonMask
type Output = GamepadButtonMask
The resulting type after applying the
|
operator.Source§impl BitOrAssign<GamepadButton> for GamepadButtonMask
impl BitOrAssign<GamepadButton> for GamepadButtonMask
Source§fn bitor_assign(&mut self, other: GamepadButton)
fn bitor_assign(&mut self, other: GamepadButton)
Performs the
|=
operation. Read moreSource§impl BitXor<GamepadButton> for GamepadButtonMask
impl BitXor<GamepadButton> for GamepadButtonMask
Source§type Output = GamepadButtonMask
type Output = GamepadButtonMask
The resulting type after applying the
^
operator.Source§impl BitXor<GamepadButtonMask> for GamepadButton
impl BitXor<GamepadButtonMask> for GamepadButton
Source§type Output = GamepadButtonMask
type Output = GamepadButtonMask
The resulting type after applying the
^
operator.Source§impl BitXor for GamepadButton
impl BitXor for GamepadButton
Source§type Output = GamepadButtonMask
type Output = GamepadButtonMask
The resulting type after applying the
^
operator.Source§impl BitXorAssign<GamepadButton> for GamepadButtonMask
impl BitXorAssign<GamepadButton> for GamepadButtonMask
Source§fn bitxor_assign(&mut self, other: GamepadButton)
fn bitxor_assign(&mut self, other: GamepadButton)
Performs the
^=
operation. Read moreSource§impl Clone for GamepadButton
impl Clone for GamepadButton
Source§fn clone(&self) -> GamepadButton
fn clone(&self) -> GamepadButton
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 GamepadButton
impl Debug for GamepadButton
Source§impl Deref for GamepadButton
impl Deref for GamepadButton
Source§impl From<GamepadButton> for GamepadButtonMask
impl From<GamepadButton> for GamepadButtonMask
Source§fn from(flag: GamepadButton) -> Self
fn from(flag: GamepadButton) -> Self
Create a mask from a single flag.
When creating a mask from multiple flags or another mask just use the clone
method
or the copy
semantics.
Source§impl Hash for GamepadButton
impl Hash for GamepadButton
Source§impl Not for GamepadButton
impl Not for GamepadButton
Source§impl Ord for GamepadButton
impl Ord for GamepadButton
Source§fn cmp(&self, other: &GamepadButton) -> Ordering
fn cmp(&self, other: &GamepadButton) -> 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 GamepadButton
impl PartialEq for GamepadButton
Source§impl PartialOrd for GamepadButton
impl PartialOrd for GamepadButton
impl Copy for GamepadButton
impl Eq for GamepadButton
impl StructuralPartialEq for GamepadButton
Auto Trait Implementations§
impl Freeze for GamepadButton
impl RefUnwindSafe for GamepadButton
impl Send for GamepadButton
impl Sync for GamepadButton
impl Unpin for GamepadButton
impl UnwindSafe for GamepadButton
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