Enum shakmaty::File[][src]

#[repr(i8)]
pub enum File { A, B, C, D, E, F, G, H, }

A file of the chessboard.

Variants

Methods

impl File
[src]

Gets a File from an integer index.

Panics

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

Gets a File 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 File
[src]

Formats the value using the given formatter. Read more

impl Copy for File
[src]

impl Clone for File
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for File
[src]

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

The resulting type after applying the - operator.

Performs the - operation.

impl Display for File
[src]

Formats the value using the given formatter. Read more

impl From<File> for u8
[src]

Performs the conversion.

impl From<File> for i8
[src]

Performs the conversion.

impl From<File> for u16
[src]

Performs the conversion.

impl From<File> for i16
[src]

Performs the conversion.

impl From<File> for u32
[src]

Performs the conversion.

impl From<File> for i32
[src]

Performs the conversion.

impl From<File> for u64
[src]

Performs the conversion.

impl From<File> for i64
[src]

Performs the conversion.

impl From<File> for u128
[src]

Performs the conversion.

impl From<File> for i128
[src]

Performs the conversion.

impl From<File> for usize
[src]

Performs the conversion.

impl From<File> for isize
[src]

Performs the conversion.

impl From<File> for Bitboard
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for File

impl Sync for File