pub trait Puzzl: Send + Sync {
type InputType;
// Required methods
fn year(&self) -> u32;
fn day(&self) -> u32;
fn data(&self) -> Self::InputType;
}Expand description
Trait to be implemented by a puzzle.
pub trait Puzzl: Send + Sync {
type InputType;
// Required methods
fn year(&self) -> u32;
fn day(&self) -> u32;
fn data(&self) -> Self::InputType;
}Trait to be implemented by a puzzle.