Function run

Source
pub fn run<T1, T2>(
    part_1: Option<fn(Input<'_>) -> T1>,
    part_2: Option<fn(Input<'_>) -> T2>,
)
where T1: ToString, T2: ToString,
Expand description

The function that aoc::parts! inserts into fn main.

Runs one of the parts with one of the puzzle inputs, depending on the command line arguments passed.

Writes the puzzle answer and timing to files in /data/[input]/[part]/out so that aocli can read them.