Struct quickbacktrack::SolveSettings [] [src]

pub struct SolveSettings {
    // some fields omitted
}

Stores settings for solver.

Default settings:

  • solve_simple: true
  • debug: false
  • difference: false
  • sleep_ms: None

Methods

impl SolveSettings
[src]

fn new() -> SolveSettings

Creates new solve settings.

fn set_solve_simple(&mut self, val: bool)

Sets wheter to solve simple moves between each step.

fn solve_simple(self, val: bool) -> Self

Whether to solve simple moves between each step.

fn set_debug(&mut self, val: bool)

Sets whether to debug by printing out to standard output.

fn debug(self, val: bool) -> Self

Whether to debug by printing out to standard output.

fn set_difference(&mut self, val: bool)

Sets whether to return the difference from initial puzzle.

fn difference(self, val: bool) -> Self

Whether to return the difference from initial puzzle.

fn set_maybe_sleep_ms(&mut self, val: Option<u64>)

Sets how many milliseconds to sleep between each step, if any.

fn maybe_sleep_ms(self, val: Option<u64>) -> Self

Sets how many milliseconds to sleep between each step, if any.

fn set_sleep_ms(&mut self, val: u64)

Sets how many milliseconds to sleep between each step.

fn sleep_ms(self, val: u64) -> Self

How many milliseconds to sleep between each step.