[][src]Trait rustenginelib::piece::PieceTrait

pub trait PieceTrait {
    fn color(self) -> Color;
fn figure(self) -> Figure;
fn fen_symbol(self) -> &'static str;
fn san_symbol(self) -> &'static str;
fn uci_symbol(self) -> &'static str;
fn san_letter(self) -> &'static str; }

PieceTrait adds methods to Piece

Required methods

fn color(self) -> Color

returns the color of the piece

fn figure(self) -> Figure

returns the figure of the piece

fn fen_symbol(self) -> &'static str

returns the fen symbol for the piece

fn san_symbol(self) -> &'static str

returns the san symbol for the piece ( capital piece letter )

fn uci_symbol(self) -> &'static str

returns the uci symbol of the piece ( lower case )

fn san_letter(self) -> &'static str

returns the san letter of the piece ( upper case )

Loading content...

Implementors

impl PieceTrait for Piece[src]

fn color(self) -> Color[src]

returns the color of the piece

fn figure(self) -> Figure[src]

returns the figure of the piece

fn fen_symbol(self) -> &'static str[src]

returns the fen symbol for the piece

fn san_symbol(self) -> &'static str[src]

returns the san symbol for the piece ( capital piece letter )

fn uci_symbol(self) -> &'static str[src]

returns the uci symbol of the piece ( lower case )

fn san_letter(self) -> &'static str[src]

returns the san letter of the piece ( upper case )

Loading content...