pub struct SearchConfig { /* private fields */ }Implementations§
Source§impl SearchConfig
impl SearchConfig
pub const fn from_go_command(go_command: GoCommand) -> Self
pub const fn new_ponder() -> Self
pub const fn new_infinite() -> Self
pub const fn new_movetime(duration: Duration) -> Self
pub const fn new_depth(depth: Depth) -> Self
pub const fn new_nodes(nodes: usize) -> Self
pub const fn new_mate(mate: Ply) -> Self
pub const fn get_go_command(&self) -> &GoCommand
pub fn set_go_command(&mut self, go_command: GoCommand)
pub fn get_moves_to_search(&self) -> Option<&[Move]>
pub fn set_moves_to_search(&mut self, moves: impl Into<Option<Vec<Move>>>)
Methods from Deref<Target = GoCommand>§
pub const NONE: Self
pub fn has_infinite_config_info(&self) -> bool
pub fn has_movetime_config_info(&self) -> bool
pub fn has_depth_config_info(&self) -> bool
pub fn has_time_clock_config_info(&self) -> bool
Trait Implementations§
Source§impl Clone for SearchConfig
impl Clone for SearchConfig
Source§fn clone(&self) -> SearchConfig
fn clone(&self) -> SearchConfig
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SearchConfig
impl Debug for SearchConfig
Source§impl Deref for SearchConfig
impl Deref for SearchConfig
Source§impl<'de> Deserialize<'de> for SearchConfig
impl<'de> Deserialize<'de> for SearchConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<GoCommand> for SearchConfig
impl From<GoCommand> for SearchConfig
Source§impl FromStr for SearchConfig
impl FromStr for SearchConfig
Source§impl PartialEq for SearchConfig
impl PartialEq for SearchConfig
Source§impl Serialize for SearchConfig
impl Serialize for SearchConfig
Source§impl TryFrom<&[&str]> for SearchConfig
impl TryFrom<&[&str]> for SearchConfig
impl Eq for SearchConfig
impl StructuralPartialEq for SearchConfig
Auto Trait Implementations§
impl Freeze for SearchConfig
impl RefUnwindSafe for SearchConfig
impl Send for SearchConfig
impl Sync for SearchConfig
impl Unpin for SearchConfig
impl UnwindSafe for SearchConfig
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<T> FromQuery for Twhere
T: DeserializeOwned,
impl<T> FromQuery for Twhere
T: DeserializeOwned,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more