pub struct Config {
    pub input: Option<PathBuf>,
    pub output: Option<PathBuf>,
    pub style: OutputStyle,
    pub print_partials: bool,
    pub delay: Option<u64>,
}
Expand description

Solve Sudoku problems blazingly fast.

Accepts input from a text file to fill in the puzzle. Each number (1-9) is interpreted as that number in the puzzle. A zero or any other letter is considered a blank space. Any whitespace is ignored.

Fields

input: Option<PathBuf>

Location of puzzle to read.

output: Option<PathBuf>

Output file to write solution to. Leave blank to write to stdout.

style: OutputStyle

Print puzzle with nice borders, options include simple, multiline and bordered

print_partials: bool

Print each partial solution to the console as the program runs.

delay: Option<u64>

Add delay between each iteration in ms (useful when using --print-partials).

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.