Enum libcoinche::cards::Rank [] [src]

#[repr(u32)]
pub enum Rank { Rank7, Rank8, Rank9, RankJ, RankQ, RankK, RankX, RankA, }

Rank of a card in a suit.

Variants

7

8

9

Jack

Queen

King

10

Ace

Methods

impl Rank
[src]

Returns the rank corresponding to the given number:

  • 0 -> 7
  • 1 -> 8
  • 2 -> 9
  • 3 -> Jack
  • 4 -> Queen
  • 5 -> King
  • 6 -> 10
  • 7 -> Ace

Panics

If n >= 8.

Returns a character representing the given rank.

Trait Implementations

impl PartialEq for Rank
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Clone for Rank
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Rank
[src]

impl Debug for Rank
[src]

Formats the value using the given formatter.