[][src]Crate card_deck

Card Deck acts as a draw and discard pile to on any kind of card.

Contributions Welcome

It is defined Generically so as not to be limited to anything specific like standard playing cards.

It takes the attitude that cards, in general, cannot be copied. As such cards are not borrowed. Instead they are consumed to be added, and when they are drawn, full ownership is returned.

For some (digital) card games, cards can be copied. If you wish to implement Clone, that will work in those cases.

Re-exports

pub use deck::Deck;
pub use deck::DeckBuilder;

Modules

deck
playing_card

Playing Cards