Enum libcoinche::cards::Suit [] [src]

#[repr(u32)]
pub enum Suit { Heart, Spade, Diamond, Club, }

One of the four Suits: Heart, Spade, Diamond, Club.

Variants

The suit of hearts.

The suit of spades.

The suit of diamonds.

The suit of clubs.

Methods

impl Suit
[src]

Returns the suit corresponding to the number:

  • 0 -> Heart
  • 1 -> Spade
  • 2 -> Diamond
  • 3 -> Club

Panics

If n >= 4.

Returns a UTF-8 character representing the suit (♥, ♠, ♦ or ♣).

Trait Implementations

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Suit
[src]

impl Debug for Suit
[src]

Formats the value using the given formatter.

impl FromStr for Suit
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more