Enum pleco::core::PieceType[][src]

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

All possible Types of Pieces on a chessboard.

For a representation of pieces considering color as well, see Piece

Variants

Methods

impl PieceType
[src]

Returns the relative value of a piece.

Used for sorting moves.

Returns if the piece is PieceType::None

Returns if the piece is not PieceType::None

Checks if the piece is actually real, as in the Piece is not None or All.

Return the lowercase character of a Piece.

Return the uppercase character of a Piece.

Trait Implementations

impl Copy for PieceType
[src]

impl Clone for PieceType
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for PieceType
[src]

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

This method tests for !=.

impl Debug for PieceType
[src]

Formats the value using the given formatter. Read more

impl Display for PieceType
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for PieceType

impl Sync for PieceType