Enum libcoinche::game::PlayError [] [src]

pub enum PlayError {
    TurnError,
    CardMissing,
    IncorrectSuit,
    InvalidPiss,
    NonRaisedTrump,
    NoLastTrick,
}

Error that can occur during play

Variants

A player tried to act before his turn

A player tried to play a card he doesn't have

A player tried to play the wrong suit, while he still have some

A player tried to play the wrong suit, while he still have trumps

A player did not raise on the last played trump

No last trick is available for display

Trait Implementations

impl PartialEq for PlayError
[src]

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

This method tests for !=.

impl Debug for PlayError
[src]

Formats the value using the given formatter.

impl Display for PlayError
[src]

Formats the value using the given formatter. Read more