pub struct Auction { /* private fields */ }
Expand description

Represents the entire auction process.

Implementations

Starts a new auction, starting with the player first.

Returns the current state of the auctions.

Returns the player that is expected to play next.

Bid a new, higher contract.

Look at the last offered contract.

Returns None if no contract was offered yet.

Returns the players cards.

The current player passes his turn.

Returns the new auction state :

  • AuctionState::Cancelled if all players passed
  • AuctionState::Over if 3 players passed in a row
  • The previous state otherwise

Attempt to coinche the current contract.

Consumes a complete auction to enter the second game phase.

If the auction was ready, returns Ok<GameState>

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.