Enum hexe_core::piece::Piece [] [src]

#[repr(u8)]
pub enum Piece { WhitePawn, BlackPawn, WhiteKnight, BlackKnight, WhiteBishop, BlackBishop, WhiteRook, BlackRook, WhiteQueen, BlackQueen, WhiteKing, BlackKing, }

A chess piece with a role and color.

Variants

Methods

impl Piece
[src]

[src]

Creates a new Piece with a Role and Color.

[src]

Returns a piece from the parsed character.

[src]

Returns the Role for the Piece.

[src]

Returns the Color for the Piece.

[src]

Converts self into a character.

Trait Implementations

impl Index for Piece
[src]

Important traits for Bitboard
[src]

Returns the bitboard for self in board.

[src]

Removes the bits of self from board.

[src]

Performs a blind removal of self at bits in board.

impl<'a> Contained<&'a PieceMap> for Piece
[src]

[src]

Returns whether self is contained in other.

impl From<Right> for Piece
[src]

[src]

Performs the conversion.

impl<T> Extract<[T; 12]> for Piece
[src]

The output type.

[src]

Extracts a reference to the value for self within buf.

[src]

Extracts a mutable reference to the value for self within buf.

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 Hash for Piece
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. 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 Eq for Piece
[src]

impl FromUnchecked<u8> for Piece
[src]

[src]

Performs the unchecked conversion.

impl From<u8> for Piece
[src]

[src]

Performs the conversion.

impl FromUnchecked<u16> for Piece
[src]

[src]

Performs the unchecked conversion.

impl From<u16> for Piece
[src]

[src]

Performs the conversion.

impl FromUnchecked<u32> for Piece
[src]

[src]

Performs the unchecked conversion.

impl From<u32> for Piece
[src]

[src]

Performs the conversion.

impl FromUnchecked<u64> for Piece
[src]

[src]

Performs the unchecked conversion.

impl From<u64> for Piece
[src]

[src]

Performs the conversion.

impl FromUnchecked<usize> for Piece
[src]

[src]

Performs the unchecked conversion.

impl From<usize> for Piece
[src]

[src]

Performs the conversion.

impl From<Piece> for char
[src]

[src]

Performs the conversion.

impl Debug for Piece
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Piece

impl Sync for Piece