[][src]Struct chess_move_gen::bb::BB

pub struct BB(pub u64);

BB represents a bitboard

Implementations

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]

pub fn iter(self) -> BBIterator

Notable traits for BBIterator

impl Iterator for BBIterator type Item = (Square, BB);
[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 Add<BB> for BB[src]

type Output = BB

The resulting type after applying the + operator.

impl BitAnd<BB> for BB[src]

type Output = BB

The resulting type after applying the & operator.

impl BitAndAssign<BB> for BB[src]

impl BitOr<BB> for BB[src]

type Output = BB

The resulting type after applying the | operator.

impl BitOrAssign<BB> for BB[src]

impl BitXor<BB> for BB[src]

type Output = BB

The resulting type after applying the ^ operator.

impl BitXorAssign<BB> for BB[src]

impl Clone for BB[src]

impl Copy for BB[src]

impl Debug for BB[src]

impl Display for BB[src]

impl Mul<BB> for BB[src]

type Output = BB

The resulting type after applying the * operator.

impl Neg for BB[src]

type Output = BB

The resulting type after applying the - operator.

impl Not for BB[src]

type Output = BB

The resulting type after applying the ! operator.

impl PartialEq<BB> for BB[src]

impl Shl<usize> for BB[src]

type Output = BB

The resulting type after applying the << operator.

impl Shr<usize> for BB[src]

type Output = BB

The resulting type after applying the >> operator.

impl StructuralPartialEq for BB[src]

impl Sub<BB> for BB[src]

type Output = BB

The resulting type after applying the - operator.

Auto Trait Implementations

impl RefUnwindSafe for BB

impl Send for BB

impl Sync for BB

impl Unpin for BB

impl UnwindSafe for BB

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> Cast<U> for T where
    U: FromCast<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> FromCast<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,