Enum lib_hearts::GameError
source · pub enum GameError {
UnknownCard,
ForbiddenMove,
PlayerDoesntHaveCard,
HeartNeverPlayedBefore,
MustUseStartCard,
MustPlaySameKind,
CannotStartWithQueenOrHeart,
StateError,
}Variants§
UnknownCard
ForbiddenMove
PlayerDoesntHaveCard
HeartNeverPlayedBefore
MustUseStartCard
MustPlaySameKind
CannotStartWithQueenOrHeart
StateError
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for GameError
impl Send for GameError
impl Sync for GameError
impl Unpin for GameError
impl UnwindSafe for GameError
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