pub trait Part<const PART: u8, const DAY: u8> {
// Required method
fn solve(input: &str) -> impl Display;
}Expand description
A solution of a part of an advent of code puzzle.
It takes the input as a string slice and returns some output that can be converted to a string.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.