pub trait SquareTrait {
// Required methods
fn from_uci(uci: String) -> (Square, bool);
fn rank(self) -> Rank;
fn file(self) -> File;
fn uci(self) -> String;
fn bitboard(self) -> Bitboard;
fn add_delta(self, delta: &Delta) -> (Square, bool);
fn add_delta_occup(self, delta: &Delta, occup: Bitboard) -> (Square, bool);
}
Expand description
Square trait adds methods to a Square
Required Methods§
Sourcefn bitboard(self) -> Bitboard
fn bitboard(self) -> Bitboard
returns an otherwise empty bitboard with the bit for this square set
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§
impl SquareTrait for Square
SquareTrait adds methods to a Square