Crate nv_card [] [src]

Modules

deck_creator

Helper module to create a standard pack of cards.

Structs

DeckIterator

Provide iterator impl for decks. It does this by removing cards from the top of the deck

DuplicatesAllowedDeck

A Deck that can contain duplicate cards. For games such as canasta or black jack that use multiple decks

NoDuplicatesDeck

A Deck that wont contain duplicate cards

StandardCard

Model of a standard playing card

Enums

Suit

Suits of standard playing cards

Traits

Collection

trait to impl for any type that represents a collection of items

Deck

The trait that is supported by all decks. It is implemented for types that are mutable collections and can be represented as an array

MutableCollection

trait for collections that can be mutated. Inherits from Collection trait

Sliceable

trait that converts type to mutable array. Required for default shuffle implementation