Enum shakmaty::Rank[][src]

#[repr(i8)]
pub enum Rank { First, Second, Third, Fourth, Fifth, Sixth, Seventh, Eighth, }

A rank of the chessboard.

Variants

Methods

impl Rank
[src]

Gets a Rank from an integer index.

Panics

Panics if the index is not in the range 0..=7.

Gets a Rank from an integer index.

Unsafety

It is the callers responsibility to ensure the index is in the range 0..=7.

Trait Implementations

impl Debug for Rank
[src]

Formats the value using the given formatter. Read more

impl Copy for Rank
[src]

impl Clone for Rank
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for Rank
[src]

impl PartialEq for Rank
[src]

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

This method tests for !=.

impl Ord for Rank
[src]

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

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl PartialOrd for Rank
[src]

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

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

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

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

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

impl Hash for Rank
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Sub for Rank
[src]

The resulting type after applying the - operator.

Performs the - operation.

impl Display for Rank
[src]

Formats the value using the given formatter. Read more

impl From<Rank> for u8
[src]

Performs the conversion.

impl From<Rank> for i8
[src]

Performs the conversion.

impl From<Rank> for u16
[src]

Performs the conversion.

impl From<Rank> for i16
[src]

Performs the conversion.

impl From<Rank> for u32
[src]

Performs the conversion.

impl From<Rank> for i32
[src]

Performs the conversion.

impl From<Rank> for u64
[src]

Performs the conversion.

impl From<Rank> for i64
[src]

Performs the conversion.

impl From<Rank> for u128
[src]

Performs the conversion.

impl From<Rank> for i128
[src]

Performs the conversion.

impl From<Rank> for usize
[src]

Performs the conversion.

impl From<Rank> for isize
[src]

Performs the conversion.

impl From<Rank> for Bitboard
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Rank

impl Sync for Rank