garnet/rust/puzzle.rs
George Thomas be0bfd0545 Pass is_real_data to parsers
As in Haskell, we'll need this for some awkward problems.
2026-01-14 01:03:07 +00:00

6 lines
149 B
Rust

pub struct Puzzle<Input, const N: usize> {
pub number: u32,
pub parser: fn(bool, &str) -> Input,
pub parts: [fn(&Input) -> String; N],
}