Enum spades::State[][src]

pub enum State {
    NotStarted,
    Betting(usize),
    Trick(usize),
    Completed,
}

Current game stage, field of Game.

The Betting and Trick variants have a usize value between 0 and 3, inclusive, that refers to the number of players that have placed bets or played cards in the trick, respectively.

Example: State::Trick(2) means the game is in the card playing stage, and two players have played their cards.

Variants

Trait Implementations

impl Debug for State
[src]

Formats the value using the given formatter. Read more

impl PartialEq for State
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl Send for State

impl Sync for State