[][src]Macro aoc_next::solver

macro_rules! solver {
    ($solver:expr) => { ... };
}

Declare a new solver, e. g. a funtion that solves an exercise.

The function's parameter type has to match the return value of the parser used for the crate::solution::Solution. The return value must implement std::fmt::Display, so the result can be printed to stdout.