pub enum GameResult {
Pending,
Victory,
Loss,
}Expand description
An enum that represents the possible results of the 2048 game.
Variants§
Pending
The result is not yet determined.
Victory
The game is won, 2048 was reached.
Loss
The game is over, 2048 was not reached, there are no valid moves left.
Trait Implementations§
Source§impl Clone for GameResult
impl Clone for GameResult
Source§fn clone(&self) -> GameResult
fn clone(&self) -> GameResult
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 GameResult
impl Debug for GameResult
Source§impl Hash for GameResult
impl Hash for GameResult
Source§impl PartialEq for GameResult
impl PartialEq for GameResult
impl Copy for GameResult
impl Eq for GameResult
impl StructuralPartialEq for GameResult
Auto Trait Implementations§
impl Freeze for GameResult
impl RefUnwindSafe for GameResult
impl Send for GameResult
impl Sync for GameResult
impl Unpin for GameResult
impl UnwindSafe for GameResult
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