Struct GamepadButtons
#[repr(transparent)]pub struct GamepadButtons(pub u32);
Tuple Fields§
§0: u32
Implementations§
§impl GamepadButtons
impl GamepadButtons
pub const None: Self = _
pub const Menu: Self = _
pub const View: Self = _
pub const A: Self = _
pub const B: Self = _
pub const X: Self = _
pub const Y: Self = _
pub const DPadUp: Self = _
pub const DPadDown: Self = _
pub const DPadLeft: Self = _
pub const DPadRight: Self = _
pub const LeftShoulder: Self = _
pub const RightShoulder: Self = _
pub const LeftThumbstick: Self = _
pub const RightThumbstick: Self = _
pub const Paddle1: Self = _
pub const Paddle2: Self = _
pub const Paddle3: Self = _
pub const Paddle4: Self = _
§impl GamepadButtons
impl GamepadButtons
Trait Implementations§
§impl BitAnd for GamepadButtons
impl BitAnd for GamepadButtons
§impl BitAndAssign for GamepadButtons
impl BitAndAssign for GamepadButtons
§fn bitand_assign(&mut self, other: Self)
fn bitand_assign(&mut self, other: Self)
Performs the
&=
operation. Read more§impl BitOr for GamepadButtons
impl BitOr for GamepadButtons
§impl BitOrAssign for GamepadButtons
impl BitOrAssign for GamepadButtons
§fn bitor_assign(&mut self, other: Self)
fn bitor_assign(&mut self, other: Self)
Performs the
|=
operation. Read more§impl Clone for GamepadButtons
impl Clone for GamepadButtons
§fn clone(&self) -> GamepadButtons
fn clone(&self) -> GamepadButtons
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 more§impl Debug for GamepadButtons
impl Debug for GamepadButtons
§impl Default for GamepadButtons
impl Default for GamepadButtons
§fn default() -> GamepadButtons
fn default() -> GamepadButtons
Returns the “default value” for a type. Read more
§impl Not for GamepadButtons
impl Not for GamepadButtons
§impl PartialEq for GamepadButtons
impl PartialEq for GamepadButtons
impl Copy for GamepadButtons
impl Eq for GamepadButtons
impl StructuralPartialEq for GamepadButtons
Auto Trait Implementations§
impl Freeze for GamepadButtons
impl RefUnwindSafe for GamepadButtons
impl Send for GamepadButtons
impl Sync for GamepadButtons
impl Unpin for GamepadButtons
impl UnwindSafe for GamepadButtons
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