[][src]Struct quickbacktrack::SolveSettings

pub struct SolveSettings {
    pub solve_simple: bool,
    pub debug: bool,
    pub difference: bool,
    pub sleep_ms: Option<u64>,
    pub max_iterations: Option<u64>,
    pub print_millions: bool,
}

Stores settings for solver.

Default settings:

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

Fields

solve_simple: bool

Whether to solve simple steps.

debug: bool

Whether to output debug prints.

difference: bool

Show difference from original puzzle.

sleep_ms: Option<u64>

The number of milliseconds to sleep before each debug print.

max_iterations: Option<u64>

The number of maximum iterations.

print_millions: bool

Whether to print every million iteration.

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) -> 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.

pub fn set_print_millions(&mut self, val: bool)[src]

Sets printing of every million iteration to standard error output.

pub fn print_millions(self, val: bool) -> Self[src]

Prints every million iteration to standard error output.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,