Enum chess::BoardStatus [−][src]
pub enum BoardStatus { Ongoing, Stalemate, Checkmate, }
What is the status of this game?
Variants
Ongoing
Stalemate
Checkmate
Trait Implementations
impl Copy for BoardStatus
[src]
impl Copy for BoardStatus
impl Clone for BoardStatus
[src]
impl Clone for BoardStatus
fn clone(&self) -> BoardStatus
[src]
fn clone(&self) -> BoardStatus
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 PartialEq for BoardStatus
[src]
impl PartialEq for BoardStatus
fn eq(&self, other: &BoardStatus) -> bool
[src]
fn eq(&self, other: &BoardStatus) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl PartialOrd for BoardStatus
[src]
impl PartialOrd for BoardStatus
fn partial_cmp(&self, other: &BoardStatus) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &BoardStatus) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
fn lt(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
fn le(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
fn gt(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
fn ge(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Debug for BoardStatus
[src]
impl Debug for BoardStatus
Auto Trait Implementations
impl Send for BoardStatus
impl Send for BoardStatus
impl Sync for BoardStatus
impl Sync for BoardStatus