Struct chess_move_gen::Move[][src]

pub struct Move { /* fields omitted */ }

Represents a move on the chess position. Uses a compact 16 bit representation

Methods

impl Move
[src]

Returns the absolute distance moved. Eg for a push from square 8 to square 24: |24 - 8| = 16

Trait Implementations

impl Copy for Move
[src]

impl Clone for Move
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Move
[src]

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

This method tests for !=.

impl Display for Move
[src]

Formats the value using the given formatter. Read more

impl Debug for Move
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Move

impl Sync for Move