pub enum Rank {
Show 13 variants
R2 = 0,
R3 = 1,
R4 = 2,
R5 = 3,
R6 = 4,
R7 = 5,
R8 = 6,
R9 = 7,
RT = 8,
RJ = 9,
RQ = 10,
RK = 11,
RA = 12,
}Expand description
Card rank representation.
Represents card ranks from 2 to Ace, with parsing support and conversion utilities.
Variants§
Implementations§
Source§impl Rank
impl Rank
Trait Implementations§
Source§impl BitOrAssign<Rank> for Rank16
impl BitOrAssign<Rank> for Rank16
Source§fn bitor_assign(&mut self, rhs: Rank)
fn bitor_assign(&mut self, rhs: Rank)
Performs the
|= operation. Read moreSource§impl FromIterator<Rank> for Rank16
impl FromIterator<Rank> for Rank16
Source§impl Ord for Rank
impl Ord for Rank
Source§impl PartialOrd for Rank
impl PartialOrd for Rank
impl Copy for Rank
impl Eq for Rank
impl StructuralPartialEq for Rank
Auto Trait Implementations§
impl Freeze for Rank
impl RefUnwindSafe for Rank
impl Send for Rank
impl Sync for Rank
impl Unpin for Rank
impl UnwindSafe for Rank
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