Struct libcoinche::cards::Card [] [src]

pub struct Card(_);

Represents a single card.

Methods

impl Card
[src]

Returns the card id (from 0 to 31).

Returns the card corresponding to the given id.

Panics

If id >= 32

Returns the card's rank.

Returns the card's suit.

Returns a string representation of the card (ex: "7♦").

Creates a card from the given suit and rank.

Trait Implementations

impl PartialEq for Card
[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 Card
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Card
[src]

impl Debug for Card
[src]

Formats the value using the given formatter.