[][src]Struct vampirc_uci::uci::UciSearchControl

pub struct UciSearchControl {
    pub search_moves: Vec<UciMove>,
    pub mate: Option<u8>,
    pub depth: Option<u8>,
    pub nodes: Option<u64>,
}

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]

impl Default for UciSearchControl[src]

fn default() -> Self[src]

Creates an empty UciSearchControl.

impl Clone for 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]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]