Struct vampirc_uci::uci::UciSearchControl
source · [−]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
sourceimpl 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
sourceimpl Clone for UciSearchControl
impl Clone for UciSearchControl
sourcefn clone(&self) -> UciSearchControl
fn clone(&self) -> UciSearchControl
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for UciSearchControl
impl Debug for UciSearchControl
sourceimpl Default for UciSearchControl
impl Default for UciSearchControl
sourceimpl Hash for UciSearchControl
impl Hash for UciSearchControl
sourceimpl PartialEq<UciSearchControl> for UciSearchControl
impl PartialEq<UciSearchControl> for UciSearchControl
sourcefn eq(&self, other: &UciSearchControl) -> bool
fn eq(&self, other: &UciSearchControl) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &UciSearchControl) -> bool
fn ne(&self, other: &UciSearchControl) -> bool
This method tests for !=
.
impl Eq for UciSearchControl
impl StructuralEq for UciSearchControl
impl StructuralPartialEq for UciSearchControl
Auto Trait Implementations
impl RefUnwindSafe for UciSearchControl
impl Send for UciSearchControl
impl Sync for UciSearchControl
impl Unpin for UciSearchControl
impl UnwindSafe for UciSearchControl
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more