pub struct GamepadButton {
pub gamepad: Gamepad,
pub button_type: GamepadButtonType,
}
Fields§
§gamepad: Gamepad
Implementations§
Source§impl GamepadButton
impl GamepadButton
pub fn new(gamepad: Gamepad, button_type: GamepadButtonType) -> Self
Trait Implementations§
Source§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<'de> Deserialize<'de> for GamepadButton
impl<'de> Deserialize<'de> for GamepadButton
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for GamepadButton
impl Display for GamepadButton
Source§impl PartialEq for GamepadButton
impl PartialEq for GamepadButton
Source§impl Serialize for GamepadButton
impl Serialize 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