Enum hexe_core::piece::PieceKind [] [src]

#[repr(u8)]
pub enum PieceKind { Pawn, Knight, Bishop, Rook, Queen, King, }

A chess piece kind.

Variants

Methods

impl PieceKind
[src]

[src]

Returns a piece kind from the parsed character.

[src]

Converts self into a static string.

[src]

Converts self into a character.

[src]

The kind is a promotion.

Trait Implementations

impl Copy for PieceKind
[src]

impl Clone for PieceKind
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

impl FromUnchecked<u8> for PieceKind
[src]

[src]

Performs the unchecked conversion.

impl From<u8> for PieceKind
[src]

[src]

Performs the conversion.

impl FromUnchecked<u16> for PieceKind
[src]

[src]

Performs the unchecked conversion.

impl From<u16> for PieceKind
[src]

[src]

Performs the conversion.

impl FromUnchecked<u32> for PieceKind
[src]

[src]

Performs the unchecked conversion.

impl From<u32> for PieceKind
[src]

[src]

Performs the conversion.

impl FromUnchecked<u64> for PieceKind
[src]

[src]

Performs the unchecked conversion.

impl From<u64> for PieceKind
[src]

[src]

Performs the conversion.

impl FromUnchecked<usize> for PieceKind
[src]

[src]

Performs the unchecked conversion.

impl From<usize> for PieceKind
[src]

[src]

Performs the conversion.

impl Debug for PieceKind
[src]

[src]

Formats the value using the given formatter. Read more

impl Display for PieceKind
[src]

[src]

Formats the value using the given formatter. Read more

impl From<PieceKind> for char
[src]

[src]

Performs the conversion.

impl From<Promotion> for PieceKind
[src]

[src]

Performs the conversion.

impl FromStr for PieceKind
[src]

The associated error which can be returned from parsing.

[src]

Parses a string s to return a value of this type. Read more

impl FromUnchecked<PieceKind> for Promotion
[src]

[src]

Performs the unchecked conversion.

Auto Trait Implementations

impl Send for PieceKind

impl Sync for PieceKind