[][src]Trait rustenginelib::square::Square

pub trait Square {
    fn rank(self) -> usize;
fn file(self) -> usize;
fn uci(self) -> String; }

Square trait adds functions to an u8 that allow treating it as a chess square

Required methods

fn rank(self) -> usize

returns the rank of the square

fn file(self) -> usize

returns the file of the square

fn uci(self) -> String

returns the UCI representation of the square

Loading content...

Implementations on Foreign Types

impl Square for usize[src]

fn rank(self) -> usize[src]

returns the rank of the square

fn file(self) -> usize[src]

returns the file of the square

fn uci(self) -> String[src]

returns the UCI representation of the square

Loading content...

Implementors

Loading content...