Struct inanis::cache::search::TranspositionTableEntry
source · pub struct TranspositionTableEntry {
pub key_data: AtomicU64,
}
Fields§
§key_data: AtomicU64
Implementations§
source§impl TranspositionTableEntry
impl TranspositionTableEntry
sourcepub fn set_data(
&self,
key: u16,
score: i16,
best_move: Move,
depth: i8,
type: u8,
age: u8
)
pub fn set_data( &self, key: u16, score: i16, best_move: Move, depth: i8, type: u8, age: u8 )
Converts key
, score
, best_move
, depth
, r#type
and age
into an atomic word, and stores it.
sourcepub fn get_data(&self) -> TranspositionTableResult
pub fn get_data(&self) -> TranspositionTableResult
Loads and parses atomic value into a TranspositionTableResult struct.
Trait Implementations§
source§impl Clone for TranspositionTableEntry
impl Clone for TranspositionTableEntry
source§fn clone(&self) -> Self
fn clone(&self) -> Self
Clones TranspositionTableEntry by creating a new atomics (with the original values).
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for TranspositionTableEntry
impl Default for TranspositionTableEntry
source§fn default() -> Self
fn default() -> Self
Constructs a default instance of TranspositionTableEntry with zeroed elements.
Auto Trait Implementations§
impl RefUnwindSafe for TranspositionTableEntry
impl Send for TranspositionTableEntry
impl Sync for TranspositionTableEntry
impl Unpin for TranspositionTableEntry
impl UnwindSafe for TranspositionTableEntry
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