#[non_exhaustive]pub struct Entry<M, S> {
pub depth: u32,
pub score: S,
pub bound: Bound,
pub best: Option<M>,
pub proven: bool,
pub reach: u32,
}Expand description
What a search learned about a position.
Non-exhaustive: tables store and return entries, only searches create them.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.depth: u32The plies that were left to search below the position.
score: SThe score found, from Side::Max’s point of view.
bound: BoundHow Entry::score relates to the position’s minimax value at Entry::depth.
best: Option<M>The best move found, tried first when the position is searched again.
proven: boolWhether no line below the position ran into the depth limit.
reach: u32For a proven entry: the fewest plies left at which a search of the
position runs into no depth limit, so the entry holds for any depth from there on.
Trait Implementations§
impl<M: Eq, S: Eq> Eq for Entry<M, S>
impl<M: PartialEq, S: PartialEq> StructuralPartialEq for Entry<M, S>
Auto Trait Implementations§
impl<M, S> Forget for Entry<M, S>
impl<M, S> Freeze for Entry<M, S>
impl<M, S> Move for Entry<M, S>
impl<M, S> RefUnwindSafe for Entry<M, S>
impl<M, S> Send for Entry<M, S>
impl<M, S> Sync for Entry<M, S>
impl<M, S> Unpin for Entry<M, S>
impl<M, S> UnsafeUnpin for Entry<M, S>
impl<M, S> UnwindSafe for Entry<M, S>
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