pub enum CribbageCoreError {
InvalidCard,
InvalidCardString,
InvalidScoreId,
NotEnoughCards,
WinnerExists,
}
Variants§
Trait Implementations§
Source§impl Debug for CribbageCoreError
impl Debug for CribbageCoreError
Source§impl Display for CribbageCoreError
impl Display for CribbageCoreError
Source§impl Error for CribbageCoreError
impl Error for CribbageCoreError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl PartialEq for CribbageCoreError
impl PartialEq for CribbageCoreError
impl Eq for CribbageCoreError
impl StructuralPartialEq for CribbageCoreError
Auto Trait Implementations§
impl Freeze for CribbageCoreError
impl RefUnwindSafe for CribbageCoreError
impl Send for CribbageCoreError
impl Sync for CribbageCoreError
impl Unpin for CribbageCoreError
impl UnwindSafe for CribbageCoreError
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