Struct chess_move_gen::bb::BB
[−]
[src]
pub struct BB(pub u64);
BB represents a bitboard
Methods
impl BB
[src]
pub fn new(sq: Square) -> BB
[src]
pub fn to_u64(&self) -> u64
[src]
pub fn to_usize(&self) -> usize
[src]
pub fn any(&self) -> bool
[src]
true if non empty
pub fn none(&self) -> bool
[src]
pub fn bswap(&self) -> BB
[src]
swaps bytes
pub fn rot_left(&self, amount: u32) -> BB
[src]
pub fn rot_right(&self, amount: u32) -> BB
[src]
pub fn is_set(&self, sq: Square) -> bool
[src]
pub fn row_empty(&self, row: usize) -> bool
[src]
pub fn pop_count(&self) -> u32
[src]
pub fn to_string(&self) -> String
[src]
pub fn bitscan(&self) -> Square
[src]
pub fn msb(&self) -> u32
[src]
pub fn leading_zeros(&self) -> u32
[src]
pub fn bitscan_reverse(&self) -> u32
[src]
ⓘImportant traits for BBIteratorpub fn iter(self) -> BBIterator
[src]
pub fn square_list(&self) -> Vec<Square>
[src]
pub fn occluded_east_fill(&self, empty: BB) -> BB
[src]
pub fn east_attacks(&self, empty: BB) -> BB
[src]
pub fn occluded_north_east_fill(&self, empty: BB) -> BB
[src]
pub fn north_east_attacks(&self, empty: BB) -> BB
[src]
pub fn occluded_north_fill(&self, empty: BB) -> BB
[src]
pub fn north_attacks(&self, empty: BB) -> BB
[src]
pub fn occluded_south_east_fill(&self, empty: BB) -> BB
[src]
pub fn south_east_attacks(&self, empty: BB) -> BB
[src]
pub fn occluded_west_fill(&self, empty: BB) -> BB
[src]
pub fn west_attacks(&self, empty: BB) -> BB
[src]
pub fn occluded_south_west_fill(&self, empty: BB) -> BB
[src]
pub fn south_west_attacks(&self, empty: BB) -> BB
[src]
pub fn occluded_north_west_fill(&self, empty: BB) -> BB
[src]
pub fn north_west_attacks(&self, empty: BB) -> BB
[src]
pub fn occluded_south_fill(&self, empty: BB) -> BB
[src]
pub fn south_attacks(&self, empty: BB) -> BB
[src]
pub fn occluded_east_fill_with_occluders(&self, empty: BB) -> BB
[src]
pub fn occluded_north_east_fill_with_occluders(&self, empty: BB) -> BB
[src]
pub fn occluded_north_fill_with_occluders(&self, empty: BB) -> BB
[src]
pub fn occluded_south_east_fill_with_occluders(&self, empty: BB) -> BB
[src]
pub fn occluded_west_fill_with_occluders(&self, empty: BB) -> BB
[src]
pub fn occluded_south_west_fill_with_occluders(&self, empty: BB) -> BB
[src]
pub fn occluded_north_west_fill_with_occluders(&self, empty: BB) -> BB
[src]
pub fn occluded_south_fill_with_occluders(&self, empty: BB) -> BB
[src]
Trait Implementations
impl PartialEq for BB
[src]
fn eq(&self, __arg_0: &BB) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &BB) -> bool
[src]
This method tests for !=
.
impl Copy for BB
[src]
impl Clone for BB
[src]
fn clone(&self) -> BB
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Shr<usize> for BB
[src]
type Output = BB
The resulting type after applying the >>
operator.
fn shr(self, amount: usize) -> BB
[src]
Performs the >>
operation.
impl Shl<usize> for BB
[src]
type Output = BB
The resulting type after applying the <<
operator.
fn shl(self, amount: usize) -> BB
[src]
Performs the <<
operation.
impl Not for BB
[src]
type Output = BB
The resulting type after applying the !
operator.
fn not(self) -> BB
[src]
Performs the unary !
operation.
impl BitOr for BB
[src]
type Output = BB
The resulting type after applying the |
operator.
fn bitor(self, other: BB) -> BB
[src]
Performs the |
operation.
impl BitOrAssign for BB
[src]
fn bitor_assign(&mut self, other: BB)
[src]
Performs the |=
operation.
impl BitXor for BB
[src]
type Output = BB
The resulting type after applying the ^
operator.
fn bitxor(self, other: BB) -> BB
[src]
Performs the ^
operation.
impl BitXorAssign for BB
[src]
fn bitxor_assign(&mut self, other: BB)
[src]
Performs the ^=
operation.
impl BitAnd for BB
[src]
type Output = BB
The resulting type after applying the &
operator.
fn bitand(self, other: BB) -> BB
[src]
Performs the &
operation.
impl BitAndAssign for BB
[src]
fn bitand_assign(&mut self, other: BB)
[src]
Performs the &=
operation.
impl Sub for BB
[src]
type Output = BB
The resulting type after applying the -
operator.
fn sub(self, other: BB) -> BB
[src]
Performs the -
operation.
impl Add for BB
[src]
type Output = BB
The resulting type after applying the +
operator.
fn add(self, other: BB) -> BB
[src]
Performs the +
operation.
impl Mul for BB
[src]
type Output = BB
The resulting type after applying the *
operator.
fn mul(self, other: BB) -> BB
[src]
Performs the *
operation.
impl Neg for BB
[src]
type Output = BB
The resulting type after applying the -
operator.
fn neg(self) -> BB
[src]
Performs the unary -
operation.
impl Display for BB
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more