garnet/rust/puzzle.rs

6 lines
151 B
Rust
Raw Normal View History

2025-12-09 19:17:25 +00:00
pub struct Puzzle<Input, Output, const N: usize> {
pub number: u32,
pub parser: fn(&str) -> Input,
pub parts: [fn(&Input) -> Output; N],
}