Enum minimax::interface::Winner [] [src]

pub enum Winner {
    Competitor(Player),
    Draw,
}

The result of playing a game until it finishes.

Variants

Competitor(Player)

A player won.

Draw

Nobody won.

Trait Implementations

impl Eq for Winner
[src]

impl PartialEq for Winner
[src]

fn eq(&self, __arg_0: &Winner) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Winner) -> bool

This method tests for !=.

impl Clone for Winner
[src]

fn clone(&self) -> Winner

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 Copy for Winner
[src]

impl Debug for Winner
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.