pub enum Rank {
Show 13 variants
Deuce = 0,
Trey = 1,
Four = 2,
Five = 3,
Six = 4,
Seven = 5,
Eight = 6,
Nine = 7,
Ten = 8,
Jack = 9,
Queen = 10,
King = 11,
Ace = 12,
}Expand description
Card rank.
Variants§
Deuce = 0
Deuce
Trey = 1
Trey
Four = 2
Four
Five = 3
Five
Six = 4
Six
Seven = 5
Seven
Eight = 6
Eight
Nine = 7
Nine
Ten = 8
Ten
Jack = 9
Jack
Queen = 10
Queen
King = 11
King
Ace = 12
Ace
Implementations§
Trait Implementations§
impl Copy for Rank
impl Eq for Rank
Source§impl Ord for Rank
impl Ord for Rank
1.21.0 (const: unstable) · 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 PartialOrd for Rank
impl PartialOrd 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 UnsafeUnpin 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