Enum shakmaty::Outcome [−][src]
pub enum Outcome { Decisive { winner: Color, }, Draw, }
Outcome of a game.
Variants
Decisive
Fields of Decisive
winner: Color |
Draw
Methods
impl Outcome
[src]
impl Outcome
Trait Implementations
impl Copy for Outcome
[src]
impl Copy for Outcome
impl Clone for Outcome
[src]
impl Clone for Outcome
fn clone(&self) -> Outcome
[src]
fn clone(&self) -> Outcome
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 Outcome
[src]
impl Eq for Outcome
impl PartialEq for Outcome
[src]
impl PartialEq for Outcome
fn eq(&self, other: &Outcome) -> bool
[src]
fn eq(&self, other: &Outcome) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Outcome) -> bool
[src]
fn ne(&self, other: &Outcome) -> bool
This method tests for !=
.
impl Debug for Outcome
[src]
impl Debug for Outcome
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 Display for Outcome
[src]
impl Display for Outcome