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 win (in a game of Three-Check).
Fields
white: u8
black: u8
Methods
impl RemainingChecks
[src]
pub fn by_color(&self, color: Color) -> u8
[src]
pub fn by_color_mut(&mut self, color: Color) -> &mut u8
[src]
pub fn decrement(&mut self, color: Color)
[src]
Trait Implementations
impl Clone for RemainingChecks
[src]
fn clone(&self) -> RemainingChecks
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Eq for RemainingChecks
[src]
impl PartialEq for RemainingChecks
[src]
fn eq(&self, __arg_0: &RemainingChecks) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &RemainingChecks) -> bool
[src]
This method tests for !=
.
impl Debug for RemainingChecks
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Default for RemainingChecks
[src]
fn default() -> RemainingChecks
[src]
Returns the "default value" for a type. Read more