pub struct UciSearchControl {
pub search_moves: Vec<UciMove>,
pub mate: Option<u8>,
pub depth: Option<u8>,
pub nodes: Option<u64>,
}Expand description
A struct that controls the engine’s (non-time-related) search settings.
Fields§
§search_moves: Vec<UciMove>Limits the search to these moves.
mate: Option<u8>Search for mate in this many moves.
depth: Option<u8>Search to this ply depth.
nodes: Option<u64>Search no more than this many nodes (positions).
Implementations§
Source§impl UciSearchControl
impl UciSearchControl
Sourcepub fn depth(depth: u8) -> UciSearchControl
pub fn depth(depth: u8) -> UciSearchControl
Creates an UciSearchControl with depth set to the parameter and everything else set to empty or None.
Sourcepub fn mate(mate: u8) -> UciSearchControl
pub fn mate(mate: u8) -> UciSearchControl
Creates an UciSearchControl with mate set to the parameter and everything else set to empty or None.
Sourcepub fn nodes(nodes: u64) -> UciSearchControl
pub fn nodes(nodes: u64) -> UciSearchControl
Creates an UciSearchControl with nodes set to the parameter and everything else set to empty or None.
Trait Implementations§
Source§impl Clone for UciSearchControl
impl Clone for UciSearchControl
Source§fn clone(&self) -> UciSearchControl
fn clone(&self) -> UciSearchControl
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 UciSearchControl
impl Debug for UciSearchControl
Source§impl Default for UciSearchControl
impl Default for UciSearchControl
Source§impl Hash for UciSearchControl
impl Hash for UciSearchControl
Source§impl PartialEq for UciSearchControl
impl PartialEq for UciSearchControl
impl Eq for UciSearchControl
impl StructuralPartialEq for UciSearchControl
Auto Trait Implementations§
impl Freeze for UciSearchControl
impl RefUnwindSafe for UciSearchControl
impl Send for UciSearchControl
impl Sync for UciSearchControl
impl Unpin for UciSearchControl
impl UnwindSafe for UciSearchControl
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