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]
impl<C> DeckBuilder<C>
pub fn new() -> Self
[src]
pub fn new() -> Self
pub fn draw_pile(self, v: Vec<C>) -> Self
[src]
pub fn draw_pile(self, v: Vec<C>) -> Self
Fill the Draw Pile with the supplied vector, consuming it
pub fn discard_pile(self, v: Vec<C>) -> Self
[src]
pub fn discard_pile(self, v: Vec<C>) -> Self
fill the Discard pile with the supplied vector consuming it
pub fn pre_shuffle(self, b: bool) -> Self
[src]
pub fn pre_shuffle(self, b: bool) -> Self
Shuffle all cards, at constrution? default: true
pub fn shuffle_discards(self, b: bool) -> Self
[src]
pub fn shuffle_discards(self, b: bool) -> Self
Shuffle discards before adding to the bottom of the draw_pile? default: true
pub fn stop_on_discards(self, b: bool) -> Self
[src]
pub fn stop_on_discards(self, b: bool) -> Self
If true, the deck is considered ending at the bottom of the draw pile. This is for all iterators and len Default: false
pub fn done(self) -> Deck<C>
[src]
pub fn done(self) -> Deck<C>
Auto Trait Implementations
impl<C> Send for DeckBuilder<C> where
C: Send,
impl<C> Send for DeckBuilder<C> where
C: Send,
impl<C> Sync for DeckBuilder<C> where
C: Sync,
impl<C> Sync for DeckBuilder<C> where
C: Sync,