pub struct AttackTable { /* private fields */ }Implementations§
Source§impl AttackTable
impl AttackTable
pub fn build() -> Self
pub fn get_pawn_mask(&self, square: u8, color: Color) -> BitBoard
pub fn get_pawn_attacks(&self, square: u8, color: Color) -> BitBoard
pub fn get_pawn_king_attack(&self, square: u8, color: Color) -> BitBoard
pub fn get_knight_attacks(&self, square: u8) -> BitBoard
pub fn get_king_attacks(&self, square: u8) -> BitBoard
pub fn get_bishop_mask(&self, square: u8) -> BitBoard
pub fn get_rook_mask(&self, square: u8) -> BitBoard
pub fn get_queen_mask(&self, square: u8) -> BitBoard
pub fn get_bishop_blocks(&self, square: u8) -> BitBoard
pub fn get_rook_blocks(&self, square: u8) -> BitBoard
pub fn get_queen_blocks(&self, square: u8) -> BitBoard
pub fn get_bishop_attacks(&self, square: u8, occupancy: BitBoard) -> BitBoard
pub fn get_rook_attacks(&self, square: u8, occupancy: BitBoard) -> BitBoard
pub fn get_queen_attacks(&self, square: u8, occupancy: BitBoard) -> BitBoard
Trait Implementations§
Source§impl Debug for AttackTable
impl Debug for AttackTable
Auto Trait Implementations§
impl Freeze for AttackTable
impl RefUnwindSafe for AttackTable
impl Send for AttackTable
impl Sync for AttackTable
impl Unpin for AttackTable
impl UnsafeUnpin for AttackTable
impl UnwindSafe for AttackTable
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more