Struct simple_cards::deck::Deck [] [src]

pub struct Deck { /* fields omitted */ }

Methods

impl Deck
[src]

[src]

Creates a new, ordered deck of 52 cards.

[src]

Creates a new, empty deck.

[src]

Returns the amount of cards in the deck.

[src]

Returns reference to a card given an index.

[src]

Adds a card to the bottom of the deck.

[src]

Adds a card to the front of the deck.

[src]

Adds a deck of cards, one by one, to the bottom of this deck.

[src]

Draws one card from the front of the deck, returning an Option.

[src]

Draws one card from the bottom of the deck, return an Option.

[src]

Shuffles the deck.

Trait Implementations

impl Debug for Deck
[src]

[src]

Formats the value using the given formatter.