[−][src]Struct vampirc_uci::uci::UciSearchControl
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).
Methods
impl UciSearchControl
[src]
pub fn depth(depth: u8) -> UciSearchControl
[src]
Creates an UciSearchControl
with depth
set to the parameter and everything else set to empty or None
.
pub fn mate(mate: u8) -> UciSearchControl
[src]
Creates an UciSearchControl
with mate
set to the parameter and everything else set to empty or None
.
pub fn nodes(nodes: u64) -> UciSearchControl
[src]
Creates an UciSearchControl
with nodes
set to the parameter and everything else set to empty or None
.
pub fn is_empty(&self) -> bool
[src]
Returns true
if all of the struct's settings are either None
or empty.
Trait Implementations
impl PartialEq<UciSearchControl> for UciSearchControl
[src]
fn eq(&self, other: &UciSearchControl) -> bool
[src]
fn ne(&self, other: &UciSearchControl) -> bool
[src]
impl Default for UciSearchControl
[src]
impl Clone for UciSearchControl
[src]
fn clone(&self) -> UciSearchControl
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Eq for UciSearchControl
[src]
impl Debug for UciSearchControl
[src]
impl Hash for UciSearchControl
[src]
Auto Trait Implementations
impl Send for UciSearchControl
impl Sync for UciSearchControl
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,