pub struct EngineBuilder { /* private fields */ }
Expand description
EngineBuilder allows for parameters of an Engine to be set and built once, avoiding repeating costly initialization steps of making then changing an Engine.
Default values:
game
: Starting chess positiontranspositions_mb
: 1 megabytesnum_threads
: 1,debug
: true
Implementations§
Source§impl EngineBuilder
impl EngineBuilder
Sourcepub fn position(self, position: Position) -> Self
pub fn position(self, position: Position) -> Self
Set the Engine’s initial game state from a position with no history.
Sourcepub fn threads(self, num_threads: usize) -> Self
pub fn threads(self, num_threads: usize) -> Self
Set the engine’s initial search thread pool size.
Sourcepub fn transpositions_mb(self, transpositions_mb: usize) -> Self
pub fn transpositions_mb(self, transpositions_mb: usize) -> Self
Set the engine’s initial transposition table size in megabytes.
Trait Implementations§
Source§impl Clone for EngineBuilder
impl Clone for EngineBuilder
Source§fn clone(&self) -> EngineBuilder
fn clone(&self) -> EngineBuilder
Returns a duplicate 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 Debug for EngineBuilder
impl Debug for EngineBuilder
Source§impl PartialEq for EngineBuilder
impl PartialEq for EngineBuilder
impl Eq for EngineBuilder
impl StructuralPartialEq for EngineBuilder
Auto Trait Implementations§
impl Freeze for EngineBuilder
impl RefUnwindSafe for EngineBuilder
impl Send for EngineBuilder
impl Sync for EngineBuilder
impl Unpin for EngineBuilder
impl UnwindSafe for EngineBuilder
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