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
A
B
X
Y
Up
Down
Left
Right
L1
L2
L3
R1
R2
R3
Select
Start
Methods from Deref<Target = u16>
Trait Implementations
sourceimpl BitAnd<GamepadButton> for GamepadButton
impl BitAnd<GamepadButton> for GamepadButton
type Output = GamepadButtonMask
type Output = GamepadButtonMask
The resulting type after applying the
&
operator.sourcefn bitand(self, other: GamepadButton) -> Self::Output
fn bitand(self, other: GamepadButton) -> Self::Output
Performs the
&
operation. Read moresourceimpl BitAnd<GamepadButton> for GamepadButtonMask
impl BitAnd<GamepadButton> for GamepadButtonMask
type Output = GamepadButtonMask
type Output = GamepadButtonMask
The resulting type after applying the
&
operator.sourcefn bitand(self, other: GamepadButton) -> Self::Output
fn bitand(self, other: GamepadButton) -> Self::Output
Performs the
&
operation. Read moresourceimpl BitAnd<GamepadButtonMask> for GamepadButton
impl BitAnd<GamepadButtonMask> for GamepadButton
type Output = GamepadButtonMask
type Output = GamepadButtonMask
The resulting type after applying the
&
operator.sourcefn bitand(self, other: GamepadButtonMask) -> Self::Output
fn bitand(self, other: GamepadButtonMask) -> Self::Output
Performs the
&
operation. Read moresourceimpl BitAndAssign<GamepadButton> for GamepadButtonMask
impl BitAndAssign<GamepadButton> for GamepadButtonMask
sourcefn bitand_assign(&mut self, other: GamepadButton)
fn bitand_assign(&mut self, other: GamepadButton)
Performs the
&=
operation. Read moresourceimpl BitOr<GamepadButton> for GamepadButton
impl BitOr<GamepadButton> for GamepadButton
type Output = GamepadButtonMask
type Output = GamepadButtonMask
The resulting type after applying the
|
operator.sourcefn bitor(self, other: GamepadButton) -> Self::Output
fn bitor(self, other: GamepadButton) -> Self::Output
Performs the
|
operation. Read moresourceimpl BitOr<GamepadButton> for GamepadButtonMask
impl BitOr<GamepadButton> for GamepadButtonMask
type Output = GamepadButtonMask
type Output = GamepadButtonMask
The resulting type after applying the
|
operator.sourcefn bitor(self, other: GamepadButton) -> Self::Output
fn bitor(self, other: GamepadButton) -> Self::Output
Performs the
|
operation. Read moresourceimpl BitOr<GamepadButtonMask> for GamepadButton
impl BitOr<GamepadButtonMask> for GamepadButton
type Output = GamepadButtonMask
type Output = GamepadButtonMask
The resulting type after applying the
|
operator.sourcefn bitor(self, other: GamepadButtonMask) -> Self::Output
fn bitor(self, other: GamepadButtonMask) -> Self::Output
Performs the
|
operation. Read moresourceimpl BitOrAssign<GamepadButton> for GamepadButtonMask
impl BitOrAssign<GamepadButton> for GamepadButtonMask
sourcefn bitor_assign(&mut self, other: GamepadButton)
fn bitor_assign(&mut self, other: GamepadButton)
Performs the
|=
operation. Read moresourceimpl BitXor<GamepadButton> for GamepadButton
impl BitXor<GamepadButton> for GamepadButton
type Output = GamepadButtonMask
type Output = GamepadButtonMask
The resulting type after applying the
^
operator.sourcefn bitxor(self, other: GamepadButton) -> Self::Output
fn bitxor(self, other: GamepadButton) -> Self::Output
Performs the
^
operation. Read moresourceimpl BitXor<GamepadButton> for GamepadButtonMask
impl BitXor<GamepadButton> for GamepadButtonMask
type Output = GamepadButtonMask
type Output = GamepadButtonMask
The resulting type after applying the
^
operator.sourcefn bitxor(self, other: GamepadButton) -> Self::Output
fn bitxor(self, other: GamepadButton) -> Self::Output
Performs the
^
operation. Read moresourceimpl BitXor<GamepadButtonMask> for GamepadButton
impl BitXor<GamepadButtonMask> for GamepadButton
type Output = GamepadButtonMask
type Output = GamepadButtonMask
The resulting type after applying the
^
operator.sourcefn bitxor(self, other: GamepadButtonMask) -> Self::Output
fn bitxor(self, other: GamepadButtonMask) -> Self::Output
Performs the
^
operation. Read moresourceimpl BitXorAssign<GamepadButton> for GamepadButtonMask
impl BitXorAssign<GamepadButton> for GamepadButtonMask
sourcefn bitxor_assign(&mut self, other: GamepadButton)
fn bitxor_assign(&mut self, other: GamepadButton)
Performs the
^=
operation. Read moresourceimpl Clone for GamepadButton
impl Clone for GamepadButton
sourcefn clone(&self) -> GamepadButton
fn clone(&self) -> GamepadButton
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Deref for GamepadButton
impl Deref for GamepadButton
sourceimpl From<GamepadButton> for GamepadButtonMask
impl From<GamepadButton> for GamepadButtonMask
sourcefn 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.
sourceimpl Not for GamepadButton
impl Not for GamepadButton
sourceimpl Ord for GamepadButton
impl Ord for GamepadButton
sourcefn cmp(&self, other: &GamepadButton) -> Ordering
fn cmp(&self, other: &GamepadButton) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<GamepadButton> for GamepadButton
impl PartialEq<GamepadButton> for GamepadButton
sourcefn eq(&self, other: &GamepadButton) -> bool
fn eq(&self, other: &GamepadButton) -> bool
sourceimpl PartialOrd<GamepadButton> for GamepadButton
impl PartialOrd<GamepadButton> for GamepadButton
sourcefn partial_cmp(&self, other: &GamepadButton) -> Option<Ordering>
fn partial_cmp(&self, other: &GamepadButton) -> Option<Ordering>
1.0.0 · sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more