Enum pleco::core::File[][src]

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

Enum for the Files of a Chessboard.

Variants

Methods

impl File
[src]

Returns the bit-set of all files to the left of the current file.

Returns the bit-set of all files to the right of the current file.

Returns the minimum file.

Examples

use pleco::core::File;

let file_a = File::A;

assert_eq!(file_a.min(File::C), File::A);

Returns the maximum file.

Examples

use pleco::core::File;

let file_a = File::A;

assert_eq!(file_a.max(File::C), File::C);

Returns the distance to another File.

Important traits for BitBoard

Returns the file BitBoard.

Trait Implementations

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

Formats the value using the given formatter. Read more

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

impl Not for File
[src]

The resulting type after applying the ! operator.

Performs the unary ! operation.

Auto Trait Implementations

impl Send for File

impl Sync for File