Logo
Explore Help
Register Sign In
patrickaldis/garnet
1
0
Fork 0
You've already forked garnet
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
garnet/rust/puzzle.rs

6 lines
143 B
Rust
Raw Normal View History

Use strings for output types in Rust This is a compromise that gets us most of the way towards what we have with the heterogeneous list in Haskell, but without any complex abstractions.
2025-12-16 17:38:53 +00:00
pub struct Puzzle<Input, const N: usize> {
Solve day 1 in Rust
2025-12-09 19:17:25 +00:00
pub number: u32,
pub parser: fn(&str) -> Input,
Use strings for output types in Rust This is a compromise that gets us most of the way towards what we have with the heterogeneous list in Haskell, but without any complex abstractions.
2025-12-16 17:38:53 +00:00
pub parts: [fn(&Input) -> String; N],
Solve day 1 in Rust
2025-12-09 19:17:25 +00:00
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 2293ms Template: 10ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API