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