Struct quickbacktrack::SolveSettings
[−]
[src]
pub struct SolveSettings { /* fields omitted */ }Stores settings for solver.
Default settings:
- solve_simple:
true - debug:
false - difference:
false - sleep_ms:
None
Methods
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) -> Self[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) -> Self[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) -> Self[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>) -> Self[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) -> Self[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>) -> Self[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) -> Self[src]
The maximum number of iterations before giving up.