Rank

Type Alias Rank 

Source
pub type Rank = u8;
Expand description

Indicates the rank of a card.

The ranks are as follows:

  • An Ace has rank 1
  • Numbered cards have the rank corresponding to their numbers
  • A Jack has rank 11
  • A Queen has rank 12
  • A King has rank 13

Rank 0 and ranks greater than 13 are not valid card ranks.