Struct card_deck::deck::DeckBuilder[][src]

pub struct DeckBuilder<C> { /* fields omitted */ }

A builder for a deck of cards. use "done" to finish.

Methods

impl<C> DeckBuilder<C>
[src]

Fill the Draw Pile with the supplied vector, consuming it

fill the Discard pile with the supplied vector consuming it

Shuffle all cards, at constrution? default: true

Shuffle discards before adding to the bottom of the draw_pile? default: true

If true, the deck is considered ending at the bottom of the draw pile. This is for all iterators and len Default: false

Auto Trait Implementations

impl<C> Send for DeckBuilder<C> where
    C: Send

impl<C> Sync for DeckBuilder<C> where
    C: Sync