Struct simple_game_utils::controller::ActionState
source · pub struct ActionState {
pub north: bool,
pub south: bool,
pub west: bool,
pub east: bool,
}
Fields§
§north: bool
§south: bool
§west: bool
§east: bool
Implementations§
Trait Implementations§
source§impl Clone for ActionState
impl Clone for ActionState
source§fn clone(&self) -> ActionState
fn clone(&self) -> ActionState
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 ActionState
impl Debug for ActionState
source§impl Default for ActionState
impl Default for ActionState
source§fn default() -> ActionState
fn default() -> ActionState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for ActionState
impl Send for ActionState
impl Sync for ActionState
impl Unpin for ActionState
impl UnwindSafe for ActionState
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