Struct tak::board::PieceCount
[−]
[src]
pub struct PieceCount { pub p1_flat: usize, pub p1_cap: usize, pub p2_flat: usize, pub p2_cap: usize, pub max_flat: usize, pub max_cap: usize, }
Fields
p1_flat: usize
p1_cap: usize
p2_flat: usize
p2_cap: usize
max_flat: usize
max_cap: usize
Methods
impl PieceCount
[src]
fn new(size: usize) -> PieceCount
fn add(&mut self, piece: &Piece)
fn used_up(&self, piece: &Piece) -> bool
Trait Implementations
impl Copy for PieceCount
[src]
impl Clone for PieceCount
[src]
fn clone(&self) -> PieceCount
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for PieceCount
[src]
impl Decodable for PieceCount
[src]
fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<PieceCount, __D::Error>
Deserialize a value using a Decoder
.