#[non_exhaustive]pub enum ParseHoldingError {
InvalidRanks,
RepeatedRank,
TooManyCards,
}Expand description
An error which can be returned when parsing a Holding
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidRanks
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
Trait Implementations§
Source§impl Clone for ParseHoldingError
impl Clone for ParseHoldingError
Source§fn clone(&self) -> ParseHoldingError
fn clone(&self) -> ParseHoldingError
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 ParseHoldingError
impl Debug for ParseHoldingError
Source§impl Display for ParseHoldingError
impl Display for ParseHoldingError
Source§impl Error for ParseHoldingError
impl Error for ParseHoldingError
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 From<ParseHoldingError> for ParseHandError
impl From<ParseHoldingError> for ParseHandError
Source§fn from(source: ParseHoldingError) -> Self
fn from(source: ParseHoldingError) -> Self
Converts to this type from the input type.
Source§impl Hash for ParseHoldingError
impl Hash for ParseHoldingError
Source§impl PartialEq for ParseHoldingError
impl PartialEq for ParseHoldingError
impl Copy for ParseHoldingError
impl Eq for ParseHoldingError
impl StructuralPartialEq for ParseHoldingError
Auto Trait Implementations§
impl Freeze for ParseHoldingError
impl RefUnwindSafe for ParseHoldingError
impl Send for ParseHoldingError
impl Sync for ParseHoldingError
impl Unpin for ParseHoldingError
impl UnsafeUnpin for ParseHoldingError
impl UnwindSafe for ParseHoldingError
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