pub enum PlayerError {
Show 15 variants
CantPlay40,
CantPlay20,
CantTakeCardDeckEmpty,
CantPlayCard(Card),
PlayerNotActive,
CardNotTrump,
CantTakeCardRoundNotFinished,
NoPlayerActive,
CantTakeAllDeckCards,
NotAllPlayersHaveTakenCards,
CantSetActivePlayer,
CantSwapTrump,
CantTakeCardPlayerNotActive,
CantTakeCardHaveAlreadyFive,
TalonAlreadyClosed,
}
Variants§
CantPlay40
CantPlay20
CantTakeCardDeckEmpty
CantPlayCard(Card)
PlayerNotActive
CardNotTrump
CantTakeCardRoundNotFinished
NoPlayerActive
CantTakeAllDeckCards
NotAllPlayersHaveTakenCards
CantSetActivePlayer
CantSwapTrump
CantTakeCardPlayerNotActive
CantTakeCardHaveAlreadyFive
TalonAlreadyClosed
Implementations§
Source§impl PlayerError
impl PlayerError
pub const fn get_message(&self) -> &str
Trait Implementations§
Source§impl Debug for PlayerError
impl Debug for PlayerError
Source§impl Display for PlayerError
impl Display for PlayerError
Source§impl Error for PlayerError
impl Error for PlayerError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for PlayerError
impl RefUnwindSafe for PlayerError
impl Send for PlayerError
impl Sync for PlayerError
impl Unpin for PlayerError
impl UnwindSafe for PlayerError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more