16 lines
347 B
Rust
16 lines
347 B
Rust
use anyhow::Result;
|
|
|
|
#[allow(dead_code)]
|
|
#[derive(Debug, PartialEq, Eq)]
|
|
pub enum ResultType {
|
|
Integer(i64),
|
|
String(String),
|
|
Lines(Vec<String>),
|
|
Nothing,
|
|
}
|
|
|
|
pub trait DayTrait {
|
|
fn get_day_number(&self) -> usize;
|
|
fn part1(&self, lines: &str) -> Result<ResultType>;
|
|
fn part2(&self, lines: &str) -> Result<ResultType>;
|
|
}
|