#[non_exhaustive]pub enum CurrentTrickError {
TooManyPlayed,
DuplicatePlayedCard,
}Expand description
Error returned when pushing cards to a CurrentTrick
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.
TooManyPlayed
More than three cards are on the table
DuplicatePlayedCard
The same card appears twice among the played cards
Trait Implementations§
Source§impl Clone for CurrentTrickError
impl Clone for CurrentTrickError
Source§fn clone(&self) -> CurrentTrickError
fn clone(&self) -> CurrentTrickError
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 CurrentTrickError
impl Debug for CurrentTrickError
Source§impl Display for CurrentTrickError
impl Display for CurrentTrickError
Source§impl Error for CurrentTrickError
impl Error for CurrentTrickError
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 CurrentTrickError
impl Hash for CurrentTrickError
Source§impl PartialEq for CurrentTrickError
impl PartialEq for CurrentTrickError
impl Copy for CurrentTrickError
impl Eq for CurrentTrickError
impl StructuralPartialEq for CurrentTrickError
Auto Trait Implementations§
impl Freeze for CurrentTrickError
impl RefUnwindSafe for CurrentTrickError
impl Send for CurrentTrickError
impl Sync for CurrentTrickError
impl Unpin for CurrentTrickError
impl UnsafeUnpin for CurrentTrickError
impl UnwindSafe for CurrentTrickError
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