Enum deckofcards::Rank [] [src]

pub enum Rank {
    Two,
    Three,
    Four,
    Five,
    Six,
    Seven,
    Eight,
    Nine,
    Ten,
    Jack,
    Queen,
    King,
    Ace,
}

This enumeration holds the ranks in a standard deck of cards.

Variants

Methods

impl Rank
[src]

Returns an iterator through the standard ranks

Returns an ordinal for the rank.

A comparator that treats an Ace as a 1

Returns a Rank represented by a char

Turns a Rank into a char

Turns a Rank into a string

Gets the standard card ranks

Trait Implementations

impl Copy for Rank
[src]

impl Clone for Rank
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Hash for Rank
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Eq for Rank
[src]

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 PartialOrd for Rank
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Debug for Rank
[src]

Formats the value using the given formatter.

impl Ord for Rank
[src]

This method returns an Ordering between self and other. Read more