[−][src]Struct chess_move_gen::bb::BB
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]
Notable traits for BBIterator
impl Iterator for BBIterator type Item = (Square, BB);
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.
pub fn add(self, other: BB) -> BB
[src]
impl BitAnd<BB> for BB
[src]
type Output = BB
The resulting type after applying the &
operator.
pub fn bitand(self, other: BB) -> BB
[src]
impl BitAndAssign<BB> for BB
[src]
pub fn bitand_assign(&mut self, other: BB)
[src]
impl BitOr<BB> for BB
[src]
type Output = BB
The resulting type after applying the |
operator.
pub fn bitor(self, other: BB) -> BB
[src]
impl BitOrAssign<BB> for BB
[src]
pub fn bitor_assign(&mut self, other: BB)
[src]
impl BitXor<BB> for BB
[src]
type Output = BB
The resulting type after applying the ^
operator.
pub fn bitxor(self, other: BB) -> BB
[src]
impl BitXorAssign<BB> for BB
[src]
pub fn bitxor_assign(&mut self, other: 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.
pub fn mul(self, other: BB) -> BB
[src]
impl Neg for BB
[src]
impl Not for BB
[src]
impl PartialEq<BB> for BB
[src]
impl Shl<usize> for BB
[src]
type Output = BB
The resulting type after applying the <<
operator.
pub fn shl(self, amount: usize) -> BB
[src]
impl Shr<usize> for BB
[src]
type Output = BB
The resulting type after applying the >>
operator.
pub fn shr(self, amount: usize) -> BB
[src]
impl StructuralPartialEq for BB
[src]
impl Sub<BB> for BB
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> Cast<U> for T where
U: FromCast<T>,
[src]
U: FromCast<T>,
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]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,