Struct nv_card::DuplicatesAllowedDeck
[−]
[src]
pub struct DuplicatesAllowedDeck<T> { /* fields omitted */ }
A Deck that can contain duplicate cards. For games such as canasta or black jack that use multiple decks
Methods
impl<T> DuplicatesAllowedDeck<T>
[src]
fn new() -> DuplicatesAllowedDeck<T>
fn new_standard_deck() -> DuplicatesAllowedDeck<StandardCard>
Trait Implementations
impl<T: Debug> Debug for DuplicatesAllowedDeck<T>
[src]
impl<T> Collection for DuplicatesAllowedDeck<T>
[src]
type Item = T
Item Type of collection
fn size(&self) -> usize
Number of items in the collection
fn is_empty(&self) -> bool
Helper function for whether collection has elements
impl<T> MutableCollection for DuplicatesAllowedDeck<T>
[src]
fn push(&mut self, item: Self::Item)
adds an item to the end of a collection
fn pop(&mut self) -> Option<Self::Item>
removes an item from the end of a collection
fn insert_at(&mut self, index: usize, item: Self::Item)
inserts at a specific index
fn remove_at(&mut self, index: usize) -> Option<Self::Item>
removes item at a specific index