Struct shakmaty::RemainingChecks [−][src]
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]
impl RemainingChecks
pub fn by_color(&self, color: Color) -> u8
[src]
pub fn by_color(&self, color: Color) -> u8
pub fn by_color_mut(&mut self, color: Color) -> &mut u8
[src]
pub fn by_color_mut(&mut self, color: Color) -> &mut u8
pub fn decrement(&mut self, color: Color)
[src]
pub fn decrement(&mut self, color: Color)
Trait Implementations
impl Clone for RemainingChecks
[src]
impl Clone for RemainingChecks
fn clone(&self) -> RemainingChecks
[src]
fn clone(&self) -> RemainingChecks
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 RemainingChecks
[src]
impl Eq for RemainingChecks
impl PartialEq for RemainingChecks
[src]
impl PartialEq for RemainingChecks
fn eq(&self, other: &RemainingChecks) -> bool
[src]
fn eq(&self, other: &RemainingChecks) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &RemainingChecks) -> bool
[src]
fn ne(&self, other: &RemainingChecks) -> bool
This method tests for !=
.
impl Debug for RemainingChecks
[src]
impl Debug for RemainingChecks
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 RemainingChecks
[src]
impl Default for RemainingChecks
fn default() -> RemainingChecks
[src]
fn default() -> RemainingChecks
Returns the "default value" for a type. Read more
impl Display for RemainingChecks
[src]
impl Display for RemainingChecks
Auto Trait Implementations
impl Send for RemainingChecks
impl Send for RemainingChecks
impl Sync for RemainingChecks
impl Sync for RemainingChecks