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]

[src]

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

[src]

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

[src]

Returns the minimum file.

Examples

use pleco::core::File;

let file_a = File::A;

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

[src]

Returns the maximum file.

Examples

use pleco::core::File;

let file_a = File::A;

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

[src]

Returns the distance to another File.

Trait Implementations

impl Copy for File
[src]

impl Clone for File
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

[src]

Formats the value using the given formatter. Read more

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

impl Not for File
[src]

The resulting type after applying the ! operator.

[src]

Performs the unary ! operation.

Auto Trait Implementations

impl Send for File

impl Sync for File