pub struct InvalidRank(/* private fields */);Expand description
Error indicating an invalid rank
The rank of a card must be in 2..=14, where J, Q, K, A are denoted as 11,
12, 13, 14 respectively.
Trait Implementations§
Source§impl Clone for InvalidRank
impl Clone for InvalidRank
Source§fn clone(&self) -> InvalidRank
fn clone(&self) -> InvalidRank
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 InvalidRank
impl Debug for InvalidRank
Source§impl Display for InvalidRank
impl Display for InvalidRank
Source§impl Error for InvalidRank
impl Error for InvalidRank
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 InvalidRank
impl Hash for InvalidRank
Source§impl Ord for InvalidRank
impl Ord for InvalidRank
Source§fn cmp(&self, other: &InvalidRank) -> Ordering
fn cmp(&self, other: &InvalidRank) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for InvalidRank
impl PartialEq for InvalidRank
Source§impl PartialOrd for InvalidRank
impl PartialOrd for InvalidRank
impl Copy for InvalidRank
impl Eq for InvalidRank
impl StructuralPartialEq for InvalidRank
Auto Trait Implementations§
impl Freeze for InvalidRank
impl RefUnwindSafe for InvalidRank
impl Send for InvalidRank
impl Sync for InvalidRank
impl Unpin for InvalidRank
impl UnsafeUnpin for InvalidRank
impl UnwindSafe for InvalidRank
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