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§
Sourcefn fen_symbol(self) -> &'static str
fn fen_symbol(self) -> &'static str
returns the fen symbol for the piece
Sourcefn san_symbol(self) -> &'static str
fn san_symbol(self) -> &'static str
returns the san symbol for the piece ( capital piece letter )
Sourcefn uci_symbol(self) -> &'static str
fn uci_symbol(self) -> &'static str
returns the uci symbol of the piece ( lower case )
Sourcefn san_letter(self) -> &'static str
fn san_letter(self) -> &'static str
returns the san letter of the piece ( upper case )