[][src]Trait rustenginelib::bitboard::BitboardTrait

pub trait BitboardTrait {
    fn pretty_print_string(&self) -> String;
fn pop(&mut self) -> (Square, bool); }

Bitboard trait adds functions to an u64 that allow treating it as a chess engine bitboard

Required methods

fn pretty_print_string(&self) -> String

returns a string that represents the bitboard as pretty print string

fn pop(&mut self) -> (Square, bool)

pops a square from the bitboard and returns it together with a bool indicating whether the pop was succesful

Loading content...

Implementors

impl BitboardTrait for Bitboard[src]

BitboardTrait adds methods to Bitboard

fn pretty_print_string(&self) -> String[src]

returns a string that represents the bitboard as pretty print string

fn pop(&mut self) -> (Square, bool)[src]

pops a square from the bitboard and returns it

Loading content...