Enum hexe_core::piece::Promotion [] [src]

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

A promotion piece role.

Variants

Methods

impl Promotion
[src]

[src]

Returns a promotion for the piece role, if possible.

[src]

Converts self into a static string.

Trait Implementations

impl<T> Extract<[T; 4]> for Promotion
[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 From<Promotion> for Role
[src]

[src]

Performs the conversion.

impl Copy for Promotion
[src]

impl Clone for Promotion
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

impl FromUnchecked<u8> for Promotion
[src]

[src]

Performs the unchecked conversion.

impl From<u8> for Promotion
[src]

[src]

Performs the conversion.

impl FromUnchecked<u16> for Promotion
[src]

[src]

Performs the unchecked conversion.

impl From<u16> for Promotion
[src]

[src]

Performs the conversion.

impl FromUnchecked<u32> for Promotion
[src]

[src]

Performs the unchecked conversion.

impl From<u32> for Promotion
[src]

[src]

Performs the conversion.

impl FromUnchecked<u64> for Promotion
[src]

[src]

Performs the unchecked conversion.

impl From<u64> for Promotion
[src]

[src]

Performs the conversion.

impl FromUnchecked<usize> for Promotion
[src]

[src]

Performs the unchecked conversion.

impl From<usize> for Promotion
[src]

[src]

Performs the conversion.

impl Debug for Promotion
[src]

[src]

Formats the value using the given formatter. Read more

impl Default for Promotion
[src]

[src]

Returns the default queen promotion piece.

impl FromUnchecked<Role> for Promotion
[src]

[src]

Performs the unchecked conversion.

impl From<Promotion> for char
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Promotion

impl Sync for Promotion