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

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

Error that can occur during play

Variants

TurnError

A player tried to act before his turn

CardMissing

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

IncorrectSuit

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

InvalidPiss

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

NonRaisedTrump

A player did not raise on the last played trump

NoLastTrick

No last trick is available for display

Trait Implementations

impl Display for PlayError

fn fmt(&self, f: &mut Formatter) -> Result

Derived Implementations

impl Debug for PlayError

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl PartialEq for PlayError

fn eq(&self, __arg_0: &PlayError) -> bool

fn ne(&self, __arg_0: &PlayError) -> bool