pub struct Zobrist { /* private fields */ }Implementations§
Source§impl Zobrist
impl Zobrist
pub fn initial() -> Self
pub fn from_piece_board( piece_board: &PieceBoard, is_p1_turn_to_move: bool, step_num: Option<usize>, ) -> Self
pub fn update_piece_board( &self, prev_piece_board: &PieceBoard, new_piece_board: &PieceBoard, ) -> Zobrist
pub fn update_player_to_move( &self, prev_p1_turn_to_move: bool, new_p1_turn_to_move: bool, ) -> Zobrist
pub fn update_step(&self, prev_step: usize, new_step: usize) -> Zobrist
pub fn place_piece( &self, piece: Piece, square: Square, place_is_p1: bool, switch_players: bool, switch_phases: bool, ) -> Self
pub fn fill_rabbits(&self, piece_board: &PieceBoard, place_is_p1: bool) -> Self
pub fn pass(&self, step: usize) -> Self
pub fn board_state_hash(&self) -> u64
Trait Implementations§
impl Copy for Zobrist
impl Eq for Zobrist
impl StructuralPartialEq for Zobrist
Auto Trait Implementations§
impl Freeze for Zobrist
impl RefUnwindSafe for Zobrist
impl Send for Zobrist
impl Sync for Zobrist
impl Unpin for Zobrist
impl UnsafeUnpin for Zobrist
impl UnwindSafe for Zobrist
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more