Enum gomoku::board::tile::Tile [] [src]

pub enum Tile {
    BLACK,
    WHITE,
    FREE,
}

Variants

BLACK
WHITE
FREE

Methods

impl Tile

fn from_str(s: &str) -> Tile

fn is_pawn(&self) -> bool

fn ennemy(&self) -> Tile

Return the tile of the ennemy if there is one, return the tile itself otherwise.

Trait Implementations

impl Default for Tile

fn default() -> Self

impl Display for Tile

fn fmt(&self, f: &mut Formatter) -> Result<(), Error>

impl Copy for Tile

Derived Implementations

impl Clone for Tile

fn clone(&self) -> Tile

1.0.0fn clone_from(&mut self, source: &Self)

impl PartialEq for Tile

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

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

impl Debug for Tile

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