Struct elma::state::PlayerKeys [−][src]
pub struct PlayerKeys { pub throttle: u32, pub brake: u32, pub rotate_right: u32, pub rotate_left: u32, pub change_direction: u32, pub toggle_navigator: u32, pub toggle_timer: u32, pub toggle_show_hide: u32, }
Key settings of a player.
Fields
throttle: u32
Throttle key.
brake: u32
Brake key.
rotate_right: u32
Rotate right key.
rotate_left: u32
Rotate left key.
change_direction: u32
Change direction key.
Toggle navigator key.
toggle_timer: u32
Toggle timer key.
toggle_show_hide: u32
Toggle show/hide key.
Trait Implementations
impl Default for PlayerKeys
[src]
impl Default for PlayerKeys
fn default() -> PlayerKeys
[src]
fn default() -> PlayerKeys
Returns the "default value" for a type. Read more
impl Debug for PlayerKeys
[src]
impl Debug for PlayerKeys
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for PlayerKeys
[src]
impl Clone for PlayerKeys
fn clone(&self) -> PlayerKeys
[src]
fn clone(&self) -> PlayerKeys
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for PlayerKeys
[src]
impl PartialEq for PlayerKeys
fn eq(&self, other: &PlayerKeys) -> bool
[src]
fn eq(&self, other: &PlayerKeys) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &PlayerKeys) -> bool
[src]
fn ne(&self, other: &PlayerKeys) -> bool
This method tests for !=
.
Auto Trait Implementations
impl Send for PlayerKeys
impl Send for PlayerKeys
impl Sync for PlayerKeys
impl Sync for PlayerKeys