#[non_exhaustive]pub enum ParseHandError {
Holding(ParseHoldingError),
NotFourSuits,
}Expand description
An error which can be returned when parsing a Hand
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.
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
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<ParseHandError> for ParseDealError
impl From<ParseHandError> for ParseDealError
Source§fn from(source: ParseHandError) -> Self
fn from(source: ParseHandError) -> Self
Converts to this type from the input type.
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 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 UnsafeUnpin 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