Enum hexe_core::piece::Role [] [src]

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

A chess piece role.

Variants

Methods

impl Role
[src]

[src]

Returns a piece role from the parsed character.

[src]

Converts self into a static string.

[src]

Converts self into a character.

[src]

Returns whether self is a piece role that can slide across the board.

[src]

The role is a promotion.

Trait Implementations

impl Index<Role> for MultiBoard
[src]

The returned type after indexing.

Important traits for Bitboard
[src]

Performs the indexing (container[index]) operation.

impl IndexMut<Role> for MultiBoard
[src]

Important traits for Bitboard
[src]

Performs the mutable indexing (container[index]) operation.

impl Index for Role
[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 From<Side> for Role
[src]

[src]

Performs the conversion.

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

impl Clone for Role
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

impl FromUnchecked<u8> for Role
[src]

[src]

Performs the unchecked conversion.

impl From<u8> for Role
[src]

[src]

Performs the conversion.

impl FromUnchecked<u16> for Role
[src]

[src]

Performs the unchecked conversion.

impl From<u16> for Role
[src]

[src]

Performs the conversion.

impl FromUnchecked<u32> for Role
[src]

[src]

Performs the unchecked conversion.

impl From<u32> for Role
[src]

[src]

Performs the conversion.

impl FromUnchecked<u64> for Role
[src]

[src]

Performs the unchecked conversion.

impl From<u64> for Role
[src]

[src]

Performs the conversion.

impl FromUnchecked<usize> for Role
[src]

[src]

Performs the unchecked conversion.

impl From<usize> for Role
[src]

[src]

Performs the conversion.

impl Debug for Role
[src]

[src]

Formats the value using the given formatter. Read more

impl Display for Role
[src]

[src]

Formats the value using the given formatter. Read more

impl From<Role> for char
[src]

[src]

Performs the conversion.

impl From<Promotion> for Role
[src]

[src]

Performs the conversion.

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

[src]

Performs the unchecked conversion.

Auto Trait Implementations

impl Send for Role

impl Sync for Role