pub enum GameMove {
Left,
Right,
Up,
Down,
}Expand description
An enum that represents the moves that can be made in the game of 2048.
Variants§
Trait Implementations§
impl Copy for GameMove
impl Eq for GameMove
impl StructuralPartialEq for GameMove
Auto Trait Implementations§
impl Freeze for GameMove
impl RefUnwindSafe for GameMove
impl Send for GameMove
impl Sync for GameMove
impl Unpin for GameMove
impl UnwindSafe for GameMove
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