pub enum GameStatus {
Playing,
Won,
Lost,
}Expand description
The current status of the game.
Variants§
Playing
Waiting for the first click, or game is in progress.
Won
All non-mine cells have been revealed — the player won.
Lost
The player revealed a mine — the game is over.
Trait Implementations§
Source§impl Clone for GameStatus
impl Clone for GameStatus
Source§fn clone(&self) -> GameStatus
fn clone(&self) -> GameStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GameStatus
impl Debug for GameStatus
Source§impl PartialEq for GameStatus
impl PartialEq for GameStatus
Source§fn eq(&self, other: &GameStatus) -> bool
fn eq(&self, other: &GameStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for GameStatus
impl Eq for GameStatus
impl StructuralPartialEq for GameStatus
Auto Trait Implementations§
impl Freeze for GameStatus
impl RefUnwindSafe for GameStatus
impl Send for GameStatus
impl Sync for GameStatus
impl Unpin for GameStatus
impl UnsafeUnpin for GameStatus
impl UnwindSafe for GameStatus
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