Enum hexe_core::castle::Right [] [src]

#[repr(u8)]
pub enum Right { WhiteKing, WhiteQueen, BlackKing, BlackQueen, }

An individual castle right for a chess game.

Variants

White kingside: E1 to G1.

White queenside: E1 to C1.

Black kingside: E8 to G8.

Black queenside: E8 to C8.

Methods

impl Right
[src]

[src]

Creates a new castle right for color and side.

[src]

Returns a castle right from the parsed character.

Important traits for Bitboard
[src]

Returns the path between the rook and king for this right.

Important traits for Range<T>
[src]

Returns an efficient iterator over each square in the path between the rook and king for self.

[src]

Returns the color for self.

[src]

Returns the castle side for self.

Trait Implementations

impl<T: Into<Rights>> BitOr<T> for Right
[src]

The resulting type after applying the | operator.

Important traits for Rights
[src]

Performs the | operation.

impl<T: Into<Rights>> BitAnd<T> for Right
[src]

The resulting type after applying the & operator.

Important traits for Rights
[src]

Performs the & operation.

impl<T: Into<Rights>> BitXor<T> for Right
[src]

The resulting type after applying the ^ operator.

Important traits for Rights
[src]

Performs the ^ operation.

impl From<Right> for Rights
[src]

[src]

Performs the conversion.

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

impl Clone for Right
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Right
[src]

impl Debug for Right
[src]

[src]

Formats the value using the given formatter. Read more

impl Hash for Right
[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 FromUnchecked<u8> for Right
[src]

[src]

Performs the unchecked conversion.

impl From<u8> for Right
[src]

[src]

Performs the conversion.

impl FromUnchecked<u16> for Right
[src]

[src]

Performs the unchecked conversion.

impl From<u16> for Right
[src]

[src]

Performs the conversion.

impl FromUnchecked<u32> for Right
[src]

[src]

Performs the unchecked conversion.

impl From<u32> for Right
[src]

[src]

Performs the conversion.

impl FromUnchecked<u64> for Right
[src]

[src]

Performs the unchecked conversion.

impl From<u64> for Right
[src]

[src]

Performs the conversion.

impl FromUnchecked<usize> for Right
[src]

[src]

Performs the unchecked conversion.

impl From<usize> for Right
[src]

[src]

Performs the conversion.

impl From<Right> for char
[src]

[src]

Performs the conversion.

impl From<Right> for Piece
[src]

[src]

Performs the conversion.

impl<T> Extract<[T; 4]> for Right
[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<Right> for Castle
[src]

[src]

Performs the conversion.

impl From<Right> for Move
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Right

impl Sync for Right