1 2 3 4 5 6 7 8 9 10 11
use magic::Magic; use bitboard::BitBoard; use std::sync::{Once, ONCE_INIT}; static SETUP: Once = ONCE_INIT; pub fn construct() { SETUP.call_once(|| { BitBoard::construct(); Magic::construct(); }); }
1 2 3 4 5 6 7 8 9 10 11
use magic::Magic; use bitboard::BitBoard; use std::sync::{Once, ONCE_INIT}; static SETUP: Once = ONCE_INIT; pub fn construct() { SETUP.call_once(|| { BitBoard::construct(); Magic::construct(); }); }