[][src]Struct shogiutil::Bitboard

pub struct Bitboard(pub u128);

Implementations

impl Bitboard[src]

pub const fn empty() -> Self[src]

pub const fn full() -> Self[src]

pub fn is_filled(&self, sq: &Square) -> bool[src]

pub fn fill(&mut self, sq: &Square)[src]

pub fn remove(&mut self, sq: &Square)[src]

pub fn rotate180(&self) -> Self[src]

pub fn iter(&self) -> impl Iterator<Item = u32>[src]

pub fn file_count_ones(&self, file: u8) -> u32[src]

Trait Implementations

impl BitAnd<Bitboard> for Bitboard[src]

type Output = Bitboard

The resulting type after applying the & operator.

impl BitOr<Bitboard> for Bitboard[src]

type Output = Bitboard

The resulting type after applying the | operator.

impl BitXor<Bitboard> for Bitboard[src]

type Output = Bitboard

The resulting type after applying the ^ operator.

impl Clone for Bitboard[src]

impl Copy for Bitboard[src]

Auto Trait Implementations

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> From<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, 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.