Struct shakmaty::RemainingChecks
[−]
[src]
pub struct RemainingChecks { pub white: u8, pub black: u8, }
The number of checks the respective side needs to give in order to in (in a game of Three-Check).
Fields
white: u8
black: u8
Methods
impl RemainingChecks
[src]
fn by_color(&self, color: Color) -> u8
fn by_color_mut(&mut self, color: Color) -> &mut u8
fn subtract(&mut self, color: Color)
Trait Implementations
impl Clone for RemainingChecks
[src]
fn clone(&self) -> RemainingChecks
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 Eq for RemainingChecks
[src]
impl PartialEq for RemainingChecks
[src]
fn eq(&self, __arg_0: &RemainingChecks) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &RemainingChecks) -> bool
This method tests for !=
.
impl Debug for RemainingChecks
[src]
impl Default for RemainingChecks
[src]
fn default() -> RemainingChecks
Returns the "default value" for a type. Read more