Struct GamepadButtons
#[repr(transparent)]pub struct GamepadButtons(pub u32);Tuple Fields§
§0: u32Implementations§
§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 duplicate 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