[][src]Struct pleco::tools::tt::Entry

#[repr(C)]
pub struct Entry { pub partial_key: u16, pub best_move: BitMove, pub score: i16, pub eval: i16, pub depth: i8, pub time_node_bound: NodeTypeTimeBound, }

Structure defining a singular Entry in a table, containing the BestMove found, the score of that node, the type of Node, depth found, as well as a key uniquely defining the node.

Fields

partial_key: u16best_move: BitMovescore: i16eval: i16depth: i8time_node_bound: NodeTypeTimeBound

Methods

impl Entry[src]

pub fn is_empty(&self) -> bool[src]

pub fn place(
    &mut self,
    key: Key,
    best_move: BitMove,
    score: i16,
    eval: i16,
    depth: i16,
    node_type: NodeBound,
    gen: u8
)
[src]

Rewrites over an Entry.

pub fn time(&self) -> u8[src]

Returns the current search time of the node.

pub fn node_type(&self) -> NodeBound[src]

Returns the [NodeType] of an Entry.

pub fn time_value(&self, curr_time: u8) -> i16[src]

Returns the value of the node in respect to the depth searched && when it was placed into the TranspositionTable.

Trait Implementations

impl PartialEq<Entry> for Entry[src]

impl Clone for Entry[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for Entry

impl Sync for Entry

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.