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

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

All possible Types of Pieces on a chessboard.

Variants

Methods

impl PieceType
[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 PieceType
[src]

impl Clone for PieceType
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for PieceType
[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 PieceType
[src]

[src]

Formats the value using the given formatter. Read more

impl Display for PieceType
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for PieceType

impl Sync for PieceType