Module card_deck::playing_card [−][src]
Playing Cards
This module is primarily intended as a demo though it should be quite functional for most uses.
It uses a struct with static enums for the types as every type needed a number for it's use.
Even Jokers are different, they are represented as 0 and 1
Do send a PR/Feature Request if some feature is missing
Structs
PCard |
Enums
Suit |
Traits
ToCVal |
ToCVal Exists as a trait to make short constructors work with either u8 or char |
Functions
pcard_deck | |
pcard_deck_builder |
Getting a Deck_Builder gives you more control over the options on the deck |