Enum hexe_core::color::Color [] [src]

#[repr(u8)]
pub enum Color { White, Black, }

A black or white color.

Variants

White color.

Black color.

Methods

impl Color
[src]

[src]

Returns a color from the parsed character.

[src]

Converts self into a static string.

Trait Implementations

impl From<Color> for Bitboard
[src]

[src]

Performs the conversion.

impl Index<Color> for MultiBoard
[src]

The returned type after indexing.

Important traits for Bitboard
[src]

Performs the indexing (container[index]) operation.

impl IndexMut<Color> for MultiBoard
[src]

Important traits for Bitboard
[src]

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

impl Index for Color
[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<Color> for Rights
[src]

Important traits for Rights
[src]

Performs the conversion.

impl Copy for Color
[src]

impl Clone for Color
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

impl PartialOrd for Color
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

1.0.0
[src]

This method tests less than (for self and other) and is used by the < operator. Read more

1.0.0
[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

1.0.0
[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

1.0.0
[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for Color
[src]

[src]

This method returns an Ordering between self and other. Read more

1.21.0
[src]

Compares and returns the maximum of two values. Read more

1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl FromUnchecked<u8> for Color
[src]

[src]

Performs the unchecked conversion.

impl From<u8> for Color
[src]

[src]

Performs the conversion.

impl FromUnchecked<u16> for Color
[src]

[src]

Performs the unchecked conversion.

impl From<u16> for Color
[src]

[src]

Performs the conversion.

impl FromUnchecked<u32> for Color
[src]

[src]

Performs the unchecked conversion.

impl From<u32> for Color
[src]

[src]

Performs the conversion.

impl FromUnchecked<u64> for Color
[src]

[src]

Performs the unchecked conversion.

impl From<u64> for Color
[src]

[src]

Performs the conversion.

impl FromUnchecked<usize> for Color
[src]

[src]

Performs the unchecked conversion.

impl From<usize> for Color
[src]

[src]

Performs the conversion.

impl Debug for Color
[src]

[src]

Formats the value using the given formatter. Read more

impl Display for Color
[src]

[src]

Formats the value using the given formatter. Read more

impl FromStr for Color
[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 Not for Color
[src]

The resulting type after applying the ! operator.

[src]

Performs the unary ! operation.

impl<T> Extract<[T; 2]> for Color
[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.

Auto Trait Implementations

impl Send for Color

impl Sync for Color