Puzzl

Trait Puzzl 

Source
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.

Required Associated Types§

Source

type InputType

Dataset type. e.g. String, &str, Vec<u8>, etc.

Required Methods§

Source

fn year(&self) -> u32

Method to get the year of the puzzle.

Source

fn day(&self) -> u32

Method to get the day of the puzzle. Should return a u32 between 1 and 25.

Source

fn data(&self) -> Self::InputType

Method to get the dataset associated with the puzzle.

Implementors§