Trait MoveTrait

Source
pub trait MoveTrait {
    // Required methods
    fn ft(from_sq: Square, to_sq: Square) -> Move;
    fn from_sq(self) -> Square;
    fn to_sq(self) -> Square;
    fn uci(self) -> String;
}
Expand description

MoveTrait adds methods to Move

Required Methods§

Source

fn ft(from_sq: Square, to_sq: Square) -> Move

returns a move from from square and to square

Source

fn from_sq(self) -> Square

returns from square of move

Source

fn to_sq(self) -> Square

returns to square of move

Source

fn uci(self) -> String

return uci representation of move

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§