Enum libcoinche::game::PlayError
source · [−]pub enum PlayError {
TurnError,
CardMissing,
IncorrectSuit,
InvalidPiss,
NonRaisedTrump,
NoLastTrick,
}
Expand description
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 Eq for PlayError
impl StructuralEq for PlayError
impl StructuralPartialEq for PlayError
Auto Trait Implementations
impl RefUnwindSafe for PlayError
impl Send for PlayError
impl Sync for PlayError
impl Unpin for PlayError
impl UnwindSafe for PlayError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more