Trait littlewing::bitboard::BitboardExt [] [src]

pub trait BitboardExt {
    fn count(&self) -> u32;
fn scan(&self) -> u32;
fn shift(&self, x: i8) -> Bitboard;
fn toggle(&mut self, i: Square);
fn set(&mut self, i: Square);
fn reset(&mut self, i: Square);
fn get(&self, i: Square) -> bool;
fn debug(&self);
fn to_debug_string(&self) -> String; }

Required Methods

Population count using LLVM ctpop

Bitscan using LLVM cttz

Left shift positive values or right shift negative values

Toggle occupancy bit at the given square

Set occupancy bit at the given square

Reset occupancy bit at the given square

Get occupancy at the given square

Implementors