Initial
This commit is contained in:
commit
284f099d3e
22 changed files with 1717 additions and 0 deletions
14
src/days/template.rs
Normal file
14
src/days/template.rs
Normal 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>;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue