pub trait Solution<'a, const DAY: u32, const PART: u8> {
    type Input;
    type Output: Debug;

    fn solve(&'a self, input: &Self::Input) -> Self::Output;
}
Expand description

Implement this trait with your solution to the Advent of Code problem for a particular day and part.

Remember: Day, then Part.

The compiler will complain about u32 (days) vs u8 (parts) if you mix this up.

Required Associated Types

Required Methods

Implementations on Foreign Types

Implementors