pub enum GameOutcome {
InProgress = 0,
Win = 1,
Lose = 2,
Draw = 3,
}
Expand description
Represents the possible outcomes of a game.
Variants§
InProgress = 0
The game is still ongoing.
Win = 1
The current player has won.
Lose = 2
The current player has lost.
Draw = 3
The game has ended in a draw.
Trait Implementations§
Source§impl Clone for GameOutcome
impl Clone for GameOutcome
Source§fn clone(&self) -> GameOutcome
fn clone(&self) -> GameOutcome
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 GameOutcome
impl Debug for GameOutcome
Source§impl Hash for GameOutcome
impl Hash for GameOutcome
Source§impl PartialEq for GameOutcome
impl PartialEq for GameOutcome
impl Copy for GameOutcome
impl Eq for GameOutcome
impl StructuralPartialEq for GameOutcome
Auto Trait Implementations§
impl Freeze for GameOutcome
impl RefUnwindSafe for GameOutcome
impl Send for GameOutcome
impl Sync for GameOutcome
impl Unpin for GameOutcome
impl UnwindSafe for GameOutcome
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