Macro deckofcards::card
[−]
[src]
macro_rules! card { ($s:expr) => { ... }; }
Creates a Card
and sets its rank / suit from its abbreviated string description. The description
is of the form "RS", Rank followed by Suit, e.g. "2D" for Two of Diamonds.
Examples
Creates the Ace of Spades
let card = card!("AS");