Struct shakmaty::Pockets [−][src]
Pockets to hold captured pieces for both sides (in Crazyhouse).
Fields
white: Pocket
black: Pocket
Methods
impl Pockets
[src]
impl Pockets
pub fn by_color(&self, color: Color) -> &Pocket
[src]
pub fn by_color(&self, color: Color) -> &Pocket
pub fn by_color_mut(&mut self, color: Color) -> &mut Pocket
[src]
pub fn by_color_mut(&mut self, color: Color) -> &mut Pocket
pub fn by_piece(&self, piece: Piece) -> u8
[src]
pub fn by_piece(&self, piece: Piece) -> u8
pub fn by_piece_mut(&mut self, piece: Piece) -> &mut u8
[src]
pub fn by_piece_mut(&mut self, piece: Piece) -> &mut u8
pub fn add(&mut self, piece: Piece)
[src]
pub fn add(&mut self, piece: Piece)
pub fn remove(&mut self, piece: Piece)
[src]
pub fn remove(&mut self, piece: Piece)
pub fn count(&self) -> usize
[src]
pub fn count(&self) -> usize
Trait Implementations
impl Clone for Pockets
[src]
impl Clone for Pockets
fn clone(&self) -> Pockets
[src]
fn clone(&self) -> Pockets
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Eq for Pockets
[src]
impl Eq for Pockets
impl PartialEq for Pockets
[src]
impl PartialEq for Pockets
fn eq(&self, other: &Pockets) -> bool
[src]
fn eq(&self, other: &Pockets) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Pockets) -> bool
[src]
fn ne(&self, other: &Pockets) -> bool
This method tests for !=
.
impl Debug for Pockets
[src]
impl Debug for Pockets
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for Pockets
[src]
impl Default for Pockets
impl Display for Pockets
[src]
impl Display for Pockets