Attribute Macro bddap_aoc_macros::register
source · #[register]
Expand description
Marks a function as a solution to an Advent of Code challenge.
The function must have the signature fn() -> String
.
Example
#[bddap_aoc::register(2020, 1, 1)]
fn part1() -> String {
"Hello, world!".to_string()
}