Solvable

Trait Solvable 

Source
pub trait Solvable {
    // Required methods
    fn run(&self, aoc: &Aoc) -> Result<()>;
    fn day(&self) -> u8;
}
Expand description

A container that can get input, parse it and execute a solver.

Implemented by Solution.

Required Methods§

Source

fn run(&self, aoc: &Aoc) -> Result<()>

Source

fn day(&self) -> u8

Implementors§

Source§

impl<P, S, I, O: Display> Solvable for Solution<P, S, I, O>
where P: Parsing<I>, S: Fn(I) -> O,