[−][src]Struct graph_solver::SolveSettings
Stores settings for solver.
Default settings:
- solve_simple:
true
- debug:
false
- difference:
false
- sleep_ms:
None
Implementations
impl SolveSettings
[src]
pub fn new() -> SolveSettings
[src]
Creates new solve settings.
pub fn set_solve_simple(&mut self, val: bool)
[src]
Sets wheter to solve simple moves between each step.
pub fn solve_simple(self, val: bool) -> SolveSettings
[src]
Whether to solve simple moves between each step.
pub fn set_debug(&mut self, val: bool)
[src]
Sets whether to debug by printing out to standard output.
pub fn debug(self, val: bool) -> SolveSettings
[src]
Whether to debug by printing out to standard output.
pub fn set_difference(&mut self, val: bool)
[src]
Sets whether to return the difference from initial puzzle.
pub fn difference(self, val: bool) -> SolveSettings
[src]
Whether to return the difference from initial puzzle.
pub fn set_maybe_sleep_ms(&mut self, val: Option<u64>)
[src]
Sets how many milliseconds to sleep between each step, if any.
pub fn maybe_sleep_ms(self, val: Option<u64>) -> SolveSettings
[src]
Sets how many milliseconds to sleep between each step, if any.
pub fn set_sleep_ms(&mut self, val: u64)
[src]
Sets how many milliseconds to sleep between each step.
pub fn sleep_ms(self, val: u64) -> SolveSettings
[src]
How many milliseconds to sleep between each step.
pub fn set_maybe_max_iterations(&mut self, val: Option<u64>)
[src]
Sets the maximum number of iterations before giving up.
pub fn maybe_max_iterations(self, val: Option<u64>) -> SolveSettings
[src]
The maximum number of iterations before giving up.
pub fn set_max_iterations(&mut self, val: u64)
[src]
Sets the maximum number of iterations before giving up.
pub fn max_iterations(self, val: u64) -> SolveSettings
[src]
The maximum number of iterations before giving up.
Auto Trait Implementations
impl RefUnwindSafe for SolveSettings
impl Send for SolveSettings
impl Sync for SolveSettings
impl Unpin for SolveSettings
impl UnwindSafe for SolveSettings
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,