pub struct Window<S> {
pub alpha: Option<S>,
pub beta: Option<S>,
}Expand description
The scores still worth telling apart at a position, from Side::Max’s point of view.
With the default Game::satisfices, a search within a window returns the exact score
if it lies strictly inside, and only a bound otherwise; a game that satisfices can get a
bound either way. None is unbounded on that side. Used to give deepening an aspiration
window, see Deepening::window.
Fields§
§alpha: Option<S>The score Side::Max is already sure of elsewhere: scores at or below it need not
be told apart.
beta: Option<S>The score Side::Min is already sure of elsewhere: scores at or above it need not
be told apart.
Implementations§
Trait Implementations§
impl<S: Copy> Copy for Window<S>
impl<S: Eq> Eq for Window<S>
impl<S: PartialEq> StructuralPartialEq for Window<S>
Auto Trait Implementations§
impl<S> Forget for Window<S>
impl<S> Freeze for Window<S>
impl<S> Move for Window<S>
impl<S> RefUnwindSafe for Window<S>where
Option<S>: RefUnwindSafe,
impl<S> Send for Window<S>
impl<S> Sync for Window<S>
impl<S> Unpin for Window<S>
impl<S> UnsafeUnpin for Window<S>where
Option<S>: UnsafeUnpin,
impl<S> UnwindSafe for Window<S>where
Option<S>: UnwindSafe,
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