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