pub struct Searcher { /* private fields */ }Implementations§
Source§impl Searcher
impl Searcher
pub fn new() -> Self
Sourcepub fn with_table_entries(entries: usize) -> Self
pub fn with_table_entries(entries: usize) -> Self
Creates a searcher with a fixed-size table; zero disables the table.
Sourcepub fn search(
&mut self,
position: Position,
dice: Dice,
options: SearchOptions,
) -> SearchReport
pub fn search( &mut self, position: Position, dice: Dice, options: SearchOptions, ) -> SearchReport
Searches complete plays for known dice using iterative deepening.
Sourcepub fn search_until<F: Fn() -> bool>(
&mut self,
position: Position,
dice: Dice,
options: SearchOptions,
should_stop: F,
) -> SearchReport
pub fn search_until<F: Fn() -> bool>( &mut self, position: Position, dice: Dice, options: SearchOptions, should_stop: F, ) -> SearchReport
Searches until a normal limit or a caller-provided cancellation signal fires.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Searcher
impl RefUnwindSafe for Searcher
impl Send for Searcher
impl Sync for Searcher
impl Unpin for Searcher
impl UnsafeUnpin for Searcher
impl UnwindSafe for Searcher
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