pub struct SearchController { /* private fields */ }
Implementations§
Source§impl SearchController
impl SearchController
pub fn new() -> Self
pub fn is_infinite_search(&self) -> bool
pub fn reset_start_time(&mut self)
pub fn set_max_time(&mut self, duration: Duration)
pub fn max_time(&self) -> Duration
pub fn is_time_up(&mut self, time_elapsed: Duration) -> bool
Trait Implementations§
Source§impl Clone for SearchController
impl Clone for SearchController
Source§fn clone(&self) -> SearchController
fn clone(&self) -> SearchController
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SearchController
impl Debug for SearchController
Source§impl Default for SearchController
impl Default for SearchController
Source§impl<'de> Deserialize<'de> for SearchController
impl<'de> Deserialize<'de> for SearchController
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<P: PositionEvaluation> SearchControl<Searcher<P>> for SearchController
impl<P: PositionEvaluation> SearchControl<Searcher<P>> for SearchController
fn get_move_overhead(&self) -> Duration
fn set_move_overhead(&mut self, duration: Duration)
fn reset_variables(&mut self)
fn on_each_search_completion(&mut self, searcher: &mut Searcher<P>)
fn on_receiving_search_config( &mut self, config: &SearchConfig, searcher: &mut Searcher<P>, )
fn get_root_moves_to_search(&self) -> Option<&[Move]>
fn stop_search_at_root_node(&mut self, searcher: &mut Searcher<P>) -> bool
fn stop_search_at_every_node(&mut self, searcher: &mut Searcher<P>) -> bool
fn with_move_overhead(self, duration: Duration) -> Self
Auto Trait Implementations§
impl Freeze for SearchController
impl RefUnwindSafe for SearchController
impl Send for SearchController
impl Sync for SearchController
impl Unpin for SearchController
impl UnwindSafe for SearchController
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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