Struct nv_card::NoDuplicatesDeck
[−]
[src]
pub struct NoDuplicatesDeck<T: PartialEq> { /* fields omitted */ }
A Deck that wont contain duplicate cards
Methods
impl<T> NoDuplicatesDeck<T> where
T: PartialEq,
[src]
T: PartialEq,
fn new() -> NoDuplicatesDeck<T>
fn new_standard_deck() -> NoDuplicatesDeck<StandardCard>
Trait Implementations
impl<T: Debug + PartialEq> Debug for NoDuplicatesDeck<T>
[src]
impl<T> Collection for NoDuplicatesDeck<T> where
T: PartialEq,
[src]
T: PartialEq,
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 NoDuplicatesDeck<T> where
T: PartialEq,
[src]
T: PartialEq,
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
impl<T> Sliceable for NoDuplicatesDeck<T> where
T: PartialEq,
[src]
T: PartialEq,