Trait PieceTrait

Source
pub trait PieceTrait {
    // Required methods
    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;
}
Expand description

PieceTrait adds methods to Piece

Required Methods§

Source

fn color(self) -> Color

returns the color of the piece

Source

fn figure(self) -> Figure

returns the figure of the piece

Source

fn fen_symbol(self) -> &'static str

returns the fen symbol for the piece

Source

fn san_symbol(self) -> &'static str

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

Source

fn uci_symbol(self) -> &'static str

returns the uci symbol of the piece ( lower case )

Source

fn san_letter(self) -> &'static str

returns the san letter of the piece ( upper case )

Implementors§