Enum dbsdk_rs::gamepad::GamepadButton
source · #[repr(u16)]pub enum GamepadButton {
Show 16 variants
A,
B,
X,
Y,
Up,
Down,
Left,
Right,
L1,
L2,
L3,
R1,
R2,
R3,
Select,
Start,
}Variants§
Methods from Deref<Target = u16>§
pub const MIN: u16 = 0u16
pub const MAX: u16 = 65_535u16
pub const BITS: u32 = 16u32
Trait Implementations§
source§impl BitAnd<GamepadButton> for GamepadButton
impl BitAnd<GamepadButton> for GamepadButton
§type Output = GamepadButtonMask
type Output = GamepadButtonMask
The resulting type after applying the
& operator.source§impl BitAnd<GamepadButton> for GamepadButtonMask
impl BitAnd<GamepadButton> for GamepadButtonMask
§type Output = GamepadButtonMask
type Output = GamepadButtonMask
The resulting type after applying the
& operator.source§impl BitAnd<GamepadButtonMask> for GamepadButton
impl BitAnd<GamepadButtonMask> for GamepadButton
§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 GamepadButton
impl BitOr<GamepadButton> for GamepadButton
§type Output = GamepadButtonMask
type Output = GamepadButtonMask
The resulting type after applying the
| operator.source§impl BitOr<GamepadButton> for GamepadButtonMask
impl BitOr<GamepadButton> for GamepadButtonMask
§type Output = GamepadButtonMask
type Output = GamepadButtonMask
The resulting type after applying the
| operator.source§impl BitOr<GamepadButtonMask> for GamepadButton
impl BitOr<GamepadButtonMask> for GamepadButton
§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 GamepadButton
impl BitXor<GamepadButton> for GamepadButton
§type Output = GamepadButtonMask
type Output = GamepadButtonMask
The resulting type after applying the
^ operator.source§impl BitXor<GamepadButton> for GamepadButtonMask
impl BitXor<GamepadButton> for GamepadButtonMask
§type Output = GamepadButtonMask
type Output = GamepadButtonMask
The resulting type after applying the
^ operator.source§impl BitXor<GamepadButtonMask> for GamepadButton
impl BitXor<GamepadButtonMask> for GamepadButton
§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 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 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<GamepadButton> for GamepadButton
impl PartialEq<GamepadButton> for GamepadButton
source§fn eq(&self, other: &GamepadButton) -> bool
fn eq(&self, other: &GamepadButton) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<GamepadButton> for GamepadButton
impl PartialOrd<GamepadButton> for GamepadButton
source§fn partial_cmp(&self, other: &GamepadButton) -> Option<Ordering>
fn partial_cmp(&self, other: &GamepadButton) -> 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 moreimpl Copy for GamepadButton
impl Eq for GamepadButton
impl StructuralEq for GamepadButton
impl StructuralPartialEq for GamepadButton
Auto Trait Implementations§
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