Struct inanis::state::representation::BoardState
source · pub struct BoardState {
pub halfmove_clock: u16,
pub castling_rights: u8,
pub en_passant: u64,
pub hash: u64,
pub pawn_hash: u64,
pub captured_piece: usize,
}
Fields§
§halfmove_clock: u16
§castling_rights: u8
§en_passant: u64
§hash: u64
§pawn_hash: u64
§captured_piece: usize
Implementations§
source§impl BoardState
impl BoardState
sourcepub fn new(
halfmove_clock: u16,
castling_rights: u8,
en_passant: u64,
hash: u64,
pawn_hash: u64,
captured_piece: usize
) -> BoardState
pub fn new( halfmove_clock: u16, castling_rights: u8, en_passant: u64, hash: u64, pawn_hash: u64, captured_piece: usize ) -> BoardState
Constructs a new instance of BoardState with stored halfmove_clock
, castling_rights
, en_passant
, hash
, pawn_hash
and captured_piece
.
Trait Implementations§
source§impl Clone for BoardState
impl Clone for BoardState
source§fn clone(&self) -> BoardState
fn clone(&self) -> BoardState
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for BoardState
impl Send for BoardState
impl Sync for BoardState
impl Unpin for BoardState
impl UnwindSafe for BoardState
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