pub trait SolutionRunner<'a, const DAY: u32, const IMPL: u16> {
fn run(&'a self, input: &'a str);
}
Expand description
Import this trait to run your advent of code solutions once they implement Solution
.
This trait doesn’t need to be implemented outside of this crate.
Blanket implementations are provided that specialize if your solutions share a parsed input type or if MissingPartTwo
is implemented.
sourceimpl<'a, T: 'a, const DAY: u32> SolutionRunner<'a, DAY, FULL> for &'a T where
&'a T: Solution<'a, DAY, 1> + Solution<'a, DAY, 2> + ParseInput<'a, DAY, 1> + ParseInput<'a, DAY, 2> + Solution<'a, DAY, 1, Input = <Self as ParseInput<'a, DAY, 1>>::Parsed> + Solution<'a, DAY, 2, Input = <Self as ParseInput<'a, DAY, 2>>::Parsed>,
sourceimpl<'a, T, const DAY: u32> SolutionRunner<'a, DAY, PART_ONE_ONLY> for T where
T: Solution<'a, DAY, 1> + ParseInput<'a, DAY, 1> + Solution<'a, DAY, 1, Input = <Self as ParseInput<'a, DAY, 1>>::Parsed> + MissingPartTwo<DAY>,