2024-12-01 20:55:15 +01:00
|
|
|
use crate::error::AdventError;
|
|
|
|
|
2024-12-02 22:09:19 +01:00
|
|
|
pub trait AdventDayPart1 {
|
|
|
|
fn read_input(&mut self) -> Result<(),AdventError>;
|
|
|
|
fn solve(&mut self) -> Result<u64, AdventError>;
|
|
|
|
}
|
2024-12-01 20:55:15 +01:00
|
|
|
|
2024-12-02 22:09:19 +01:00
|
|
|
pub trait AdventDayPart2 {
|
2024-12-01 20:55:15 +01:00
|
|
|
fn read_input(&mut self) -> Result<(),AdventError>;
|
2024-12-02 22:09:19 +01:00
|
|
|
fn solve(&mut self) -> Result<u64, AdventError>;
|
|
|
|
}
|
|
|
|
|
|
|
|
pub trait AdventDay {
|
2024-12-01 20:55:15 +01:00
|
|
|
fn puzzle1(&mut self) -> Result<u64, AdventError>;
|
|
|
|
fn puzzle2(&mut self) -> Result<u64, AdventError>;
|
|
|
|
}
|
|
|
|
|
2024-12-02 22:09:19 +01:00
|
|
|
pub mod day1;
|
|
|
|
pub mod day2;
|