Struct inanis::cache::killers::KillersTable
source · pub struct KillersTable {
pub table: [[KillersTableEntry; 2]; 64],
}
Fields§
§table: [[KillersTableEntry; 2]; 64]
Implementations§
source§impl KillersTable
impl KillersTable
sourcepub fn add(&self, ply: u16, move: Move)
pub fn add(&self, ply: u16, move: Move)
Adds a new killer r#move
at the level specified by ply
value. Maximal amount of slots for each of them is set by
KILLER_SLOTS constant, and newer entries have always a priority over old ones. If there’s already exactly the same
move in the slot 0, the table is not changed.
Trait Implementations§
source§impl Clone for KillersTable
impl Clone for KillersTable
source§fn clone(&self) -> KillersTable
fn clone(&self) -> KillersTable
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 moresource§impl Default for KillersTable
impl Default for KillersTable
source§fn default() -> Self
fn default() -> Self
Constructs a default instance of KillersTable with zeroed elements.
Auto Trait Implementations§
impl RefUnwindSafe for KillersTable
impl Send for KillersTable
impl Sync for KillersTable
impl Unpin for KillersTable
impl UnwindSafe for KillersTable
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