Expand description
High-level helpers intended for language bindings (rustoku-wasm, rustoku-py, …).
Rust consumers of rustoku-lib should use the core crate::Rustoku API directly.
This module deliberately sits at rustoku_lib::bind and is not re-exported
at the crate root so it stays out of the way.
These functions wrap the core Rustoku primitives and return simple, fully-owned
Rust types so that binding crates (rustoku-wasm, rustoku-py, …) contain no
solving logic of their own – they only marshal results into the target language’s
type system.
Structs§
- Candidate
Change - Solve
Output - Structured output from a solve-with-steps operation.
- Solve
Step Info - Flat, serialisable representation of a single solve step.
Functions§
- candidates_
grid - Returns the candidate digits for every cell as a 9×9 grid.
- generate_
complex_ str - Advanced generation with specific clues and symmetry.
- generate_
str - Generates a puzzle for the given difficulty string and returns it as an 81-char string.
- is_
valid_ solution - Returns
trueifpuzzleis a fully-solved, valid Sudoku board. - solve_
all_ str - Solves
puzzleand returns all solutions as 81-char strings. - solve_
any_ str - Solves
puzzleand returns the first solution as an 81-char string, orNoneif unsolvable. - solve_
with_ steps - Solves
puzzleusing human techniques for the givendifficultyand returns a full step trace, orNoneif unsolvable.