[][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).

Implementations

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 Clone for UciSearchControl[src]

impl Debug for UciSearchControl[src]

impl Default for UciSearchControl[src]

fn default() -> Self[src]

Creates an empty UciSearchControl.

impl Eq for UciSearchControl[src]

impl Hash for UciSearchControl[src]

impl PartialEq<UciSearchControl> for UciSearchControl[src]

impl StructuralEq for UciSearchControl[src]

impl StructuralPartialEq for UciSearchControl[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.