pub struct Bitboard(pub u128);Tuple Fields§
§0: u128Implementations§
Source§impl Bitboard
impl Bitboard
pub const fn empty() -> Self
pub const fn full() -> Self
pub fn is_filled(&self, sq: &Square) -> bool
pub fn fill(&mut self, sq: &Square)
pub fn remove(&mut self, sq: &Square)
pub fn rotate180(&self) -> Self
pub fn iter(&self) -> impl Iterator<Item = u32>
pub fn file_count_ones(&self, file: u8) -> u32
Trait Implementations§
impl Copy for Bitboard
Auto Trait Implementations§
impl Freeze for Bitboard
impl RefUnwindSafe for Bitboard
impl Send for Bitboard
impl Sync for Bitboard
impl Unpin for Bitboard
impl UnwindSafe for Bitboard
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