Module libcoinche::cards [] [src]

This module represents a basic, rule-agnostic 32-cards system.

Structs

Card

Represents a single card

Deck

A deck of cards.

Hand

Represents an unordered set of cards

Rank

Rank of a card in a suit

Suit

One of the four Suits: Heart, Spade, Diamond, Club

Constants

CLUB

The Club suit

DIAMOND

The Diamond suit

HEART

The Heart suit

RANK_7

7

RANK_8

8

RANK_9

9

RANK_A

Ace

RANK_J

Jack

RANK_K

King

RANK_MASK

Bit mask over all ranks

RANK_Q

Queen

RANK_X

10

SPADE

The Spade suit