Struct meru_interface::key_assign::GamepadButton
source · [−]pub struct GamepadButton {
pub gamepad: Gamepad,
pub button_type: GamepadButtonType,
}
Fields
gamepad: Gamepad
Implementations
sourceimpl GamepadButton
impl GamepadButton
pub fn new(gamepad: Gamepad, button_type: GamepadButtonType) -> Self
Trait Implementations
sourceimpl 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 more
sourceimpl Debug for GamepadButton
impl Debug for GamepadButton
sourceimpl<'de> Deserialize<'de> for GamepadButton
impl<'de> Deserialize<'de> for GamepadButton
sourcefn 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
sourceimpl Display for GamepadButton
impl Display for GamepadButton
sourceimpl PartialEq<GamepadButton> for GamepadButton
impl PartialEq<GamepadButton> for GamepadButton
sourcefn 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 ==
. Read more
sourceimpl Serialize for GamepadButton
impl Serialize for GamepadButton
impl 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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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