pub struct TranspositionTable { /* private fields */ }
Expand description
A transposition table that stores results from previous searches to avoid re-computing evaluations for the same game state.
Implementations§
Source§impl TranspositionTable
impl TranspositionTable
Sourcepub const MAX_SIZE: usize = 8_388_617usize
pub const MAX_SIZE: usize = 8_388_617usize
The number of entries in the table. A large prime number is chosen to help avoid collisions.
Sourcepub fn new() -> TranspositionTable
pub fn new() -> TranspositionTable
Creates a new empty transposition table, allocating space for all entries.
Trait Implementations§
Source§impl Debug for TranspositionTable
impl Debug for TranspositionTable
Source§impl Default for TranspositionTable
Default constructor for the TranspositionTable
struct.
impl Default for TranspositionTable
Default constructor for the TranspositionTable
struct.
Source§fn default() -> TranspositionTable
fn default() -> TranspositionTable
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TranspositionTable
impl RefUnwindSafe for TranspositionTable
impl Send for TranspositionTable
impl Sync for TranspositionTable
impl Unpin for TranspositionTable
impl UnwindSafe for TranspositionTable
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more