AoC2021/src/day.rs

7 lines
180 B
Rust

use anyhow::Result;
pub trait Day {
fn init(content: String) -> Result<Self> where Self: Sized;
fn part1(&self) -> Result<String>;
fn part2(&self) -> Result<String>;
}