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: u8,
pub pst_score: PackedEval,
}
Fields§
§halfmove_clock: u16
§castling_rights: u8
§en_passant: u64
§hash: u64
§pawn_hash: u64
§captured_piece: u8
§pst_score: PackedEval
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: u8,
pst_score: PackedEval
) -> BoardState
pub fn new( halfmove_clock: u16, castling_rights: u8, en_passant: u64, hash: u64, pawn_hash: u64, captured_piece: u8, pst_score: PackedEval ) -> BoardState
Constructs a new instance of BoardState with stored halfmove_clock
, castling_rights
, en_passant
, hash
, pawn_hash
, captured_piece
and pst_score
.
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 moreimpl Copy for BoardState
Auto 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