pub enum ParseHandError {
InvalidHolding,
RepeatedRank,
TooManyCards,
NotFourSuits,
InvalidDealer,
NotFourHands,
}Variants§
InvalidHolding
Ranks are not all valid or in descending order
RepeatedRank
The same rank appears more than once
TooManyCards
A suit contains more than 13 cards
NotFourSuits
The hand does not contain 4 suits
InvalidDealer
Invalid dealer tag for a deal
NotFourHands
The deal does not contain 4 hands
Trait Implementations§
Source§impl Clone for ParseHandError
impl Clone for ParseHandError
Source§fn clone(&self) -> ParseHandError
fn clone(&self) -> ParseHandError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParseHandError
impl Debug for ParseHandError
Source§impl Display for ParseHandError
impl Display for ParseHandError
Source§impl Error for ParseHandError
impl Error for ParseHandError
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()
Source§impl Hash for ParseHandError
impl Hash for ParseHandError
Source§impl PartialEq for ParseHandError
impl PartialEq for ParseHandError
impl Copy for ParseHandError
impl Eq for ParseHandError
impl StructuralPartialEq for ParseHandError
Auto Trait Implementations§
impl Freeze for ParseHandError
impl RefUnwindSafe for ParseHandError
impl Send for ParseHandError
impl Sync for ParseHandError
impl Unpin for ParseHandError
impl UnwindSafe for ParseHandError
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