Struct rust_sudoku::cli::Config
source · [−]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
Auto Trait Implementations
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more