Struct hexe_core::mv::kind::Promotion [] [src]

pub struct Promotion(_);

A promotion move.

Methods

impl Promotion
[src]

[src]

Creates a new promotion move.

[src]

Returns the kind for self.

[src]

Creates a promotion move using Queen as its piece.

[src]

Returns the color of the moving piece.

[src]

Returns the promotion piece.

Methods from Deref<Target = Move>

Trait Implementations

impl From<Promotion> for Move
[src]

[src]

Performs the conversion.

impl From<Promotion> for u16
[src]

[src]

Performs the conversion.

impl FromUnchecked<Move> for Promotion
[src]

[src]

Performs the unchecked conversion.

impl FromUnchecked<u16> for Promotion
[src]

[src]

Performs the unchecked conversion.

impl Deref for Promotion
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.

impl AsRef<Move> for Promotion
[src]

[src]

Performs the conversion.

impl PartialEq for Promotion
[src]

[src]

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

[src]

This method tests for !=.

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

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

[src]

Formats the value using the given formatter. Read more

impl From<Promotion> for Matches
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Promotion

impl Sync for Promotion