pub enum OjError {
}
Expand description
wiki | Library-related error types.
Variants§
NotRank(String)
Number or text is not a valid card rank.
NotSuit(String)
Number or text is not a valid card suit.
NotCard(String)
Number or text is not a valid card ordinal.
ParseEmpty(String)
Empty input where a value was expected.
ParseOther(String)
Some other parsing error.
InvalidCard(Card, String)
Card is not valid for the deck type.
DuplicateCard(Card)
Duplicate card in deck or hand not allowing them.
EmptyDeck(usize, usize)
Deck is empty when it should not be.
EmptyHand(usize, usize)
Hand is empty when it should not be.
CardNotFound(Card)
Card not found in deck or hand.
HashDomain(String)
Hash function doesn’t apply to this hand.
BadHand(String)
Badly formed poker hand
NotImplemented(String)
Function not implemented
Trait Implementations§
source§impl Error for OjError
impl Error for OjError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
Auto Trait Implementations§
impl Freeze for OjError
impl RefUnwindSafe for OjError
impl Send for OjError
impl Sync for OjError
impl Unpin for OjError
impl UnwindSafe for OjError
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)