day01 finished
This commit is contained in:
parent
284f099d3e
commit
68fefd064a
9 changed files with 2487 additions and 164 deletions
|
|
@ -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>;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue