This commit is contained in:
Ruediger Ludwig 2023-01-24 10:13:28 +01:00
commit 284f099d3e
22 changed files with 1717 additions and 0 deletions

14
src/days/template.rs Normal file
View file

@ -0,0 +1,14 @@
use anyhow::Result;
pub enum ResultType {
IntResult(i64),
StringResult(String),
LinesResult(String),
NoResult,
}
pub trait DayTrait {
fn get_day_number(&self) -> usize;
fn part1(&self, lines: String) -> Result<ResultType>;
fn part2(&self, lines: String) -> Result<ResultType>;
}