pub struct Puzzle {
pub info: PuzzleInfo,
pub grid: Grid,
pub clues: Clues,
pub extensions: Extensions,
}Expand description
A complete crossword puzzle parsed from a .puz file.
This is the main data structure returned by the parsing functions. It contains all the information needed to display and interact with a crossword puzzle.
§Examples
use puz_parse::parse_file;
let puzzle = parse_file("puzzle.puz")?;
println!("Title: {}", puzzle.info.title);
println!("Grid size: {}x{}", puzzle.info.width, puzzle.info.height);
println!("Number of across clues: {}", puzzle.clues.across.len());Fields§
§info: PuzzleInfoBasic puzzle metadata (title, author, dimensions, etc.)
grid: GridThe puzzle grid (solution and blank grids)
clues: CluesClues organized by direction and number
extensions: ExtensionsOptional puzzle extensions (rebus, circles, etc.)
Trait Implementations§
impl StructuralPartialEq for Puzzle
Auto Trait Implementations§
impl Freeze for Puzzle
impl RefUnwindSafe for Puzzle
impl Send for Puzzle
impl Sync for Puzzle
impl Unpin for Puzzle
impl UnwindSafe for Puzzle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more