Enum deckofcards::Suit [] [src]

pub enum Suit {
    Spades,
    Hearts,
    Diamonds,
    Clubs,
}

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

Variants

Methods

impl Suit
[src]

Returns an iterator through the standard suits

Returns an ordinal for the suit

Returns a Suit for the character, e.g. Hearts for 'H'

Returns a char that the represents the suit, e.g. 'H' for Hearts

Returns a string name of the suit

The standard list of suits

Trait Implementations

impl Copy for Suit
[src]

impl Clone for Suit
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Hash for Suit
[src]

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

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

impl PartialEq for Suit
[src]

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

This method tests for !=.

impl Eq for Suit
[src]

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

Formats the value using the given formatter.

impl Ord for Suit
[src]

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