pub enum PlayerAction {
MoveLeft,
MoveRight,
MoveUp,
MoveDown,
Inventory,
Settings,
}
Variants§
Implementations§
Source§impl PlayerAction
impl PlayerAction
pub fn perform_action(&self, data: &mut Data)
Trait Implementations§
Source§impl Clone for PlayerAction
impl Clone for PlayerAction
Source§fn clone(&self) -> PlayerAction
fn clone(&self) -> PlayerAction
Returns a duplicate 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 PlayerAction
impl Debug for PlayerAction
Source§impl PartialEq for PlayerAction
impl PartialEq for PlayerAction
impl Copy for PlayerAction
impl Eq for PlayerAction
impl StructuralPartialEq for PlayerAction
Auto Trait Implementations§
impl Freeze for PlayerAction
impl RefUnwindSafe for PlayerAction
impl Send for PlayerAction
impl Sync for PlayerAction
impl Unpin for PlayerAction
impl UnwindSafe for PlayerAction
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