day01 finished

This commit is contained in:
Ruediger Ludwig 2023-01-26 21:52:09 +01:00
parent 284f099d3e
commit 68fefd064a
9 changed files with 2487 additions and 164 deletions

View file

@ -1,14 +1,16 @@
use anyhow::Result;
#[allow(dead_code)]
#[derive(Debug, PartialEq, Eq)]
pub enum ResultType {
IntResult(i64),
StringResult(String),
LinesResult(String),
LinesResult(Vec<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>;
fn part1(&self, lines: &str) -> Result<ResultType>;
fn part2(&self, lines: &str) -> Result<ResultType>;
}