[−][src]Struct pleco::core::bitboard::RandBitBoard
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 BitBoardpub fn one(self) -> BitBoard
[src]
ⓘImportant traits for BitBoard
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
impl Send for RandBitBoard
impl Sync for RandBitBoard
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,