[][src]Struct pleco::core::bitboard::RandBitBoard

pub struct RandBitBoard { /* fields omitted */ }

BitBoard generating structure.

Methods

impl RandBitBoard[src]

pub fn many(self, amount: usize) -> Vec<BitBoard>[src]

Returns a vector of "amount" BitBoards.

Important traits for BitBoard
pub fn one(self) -> BitBoard[src]

Returns a singular random BitBoard.

pub fn avg(self, bits: u8) -> Self[src]

Sets the average number of bits in the resulting Bitboard.

pub fn allow_empty(self) -> Self[src]

Allows empty BitBoards to be returned.

pub fn max(self, max: u16) -> Self[src]

Sets the maximum number of bits in a BitBoard.

pub fn min(self, min: u16) -> Self[src]

Sets the minimum number of bits in a BitBoard.

pub fn pseudo_random(self, seed: u64) -> Self[src]

Sets the generation to use pseudo-random numbers instead of random numbers. The seed is a random number for the random numbers to be generated off of.

Trait Implementations

impl Default for RandBitBoard[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.