Enum pleco::core::Piece [] [src]

#[repr(u8)]
pub enum Piece { K, Q, R, B, N, P, }

All possible Pieces on a chessboard.

Variants

Methods

impl Piece
[src]

[src]

Returns the relative value of a piece.

Used for sorting moves.

[src]

Return the lowercase character of a Piece.

[src]

Return the uppercase character of a Piece.

Trait Implementations

impl Copy for Piece
[src]

impl Clone for Piece
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Piece
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl Debug for Piece
[src]

[src]

Formats the value using the given formatter.

impl Display for Piece
[src]

[src]

Formats the value using the given formatter. Read more