Created Wireframe for code structure

This commit is contained in:
2023-12-01 06:41:23 +00:00
parent 8f24f18d26
commit af0b387339
6 changed files with 53 additions and 4 deletions

7
src/solutions/dayxx.rs Normal file
View File

@ -0,0 +1,7 @@
use std::{error::Error, fmt::Display};
pub trait Solution {
fn part1(&self, input: &mut Vec<String>) -> Result<Box<dyn Display>, Box<dyn Error>>;
fn part2(&self, input: &mut Vec<String>) -> Result<Box<dyn Display>, Box<dyn Error>>;
fn get_day(&self) -> u8;
}

3
src/solutions/mod.rs Normal file
View File

@ -0,0 +1,3 @@
pub mod dayxx;
pub mod day01;