Created Wireframe for code structure
This commit is contained in:
7
src/solutions/dayxx.rs
Normal file
7
src/solutions/dayxx.rs
Normal 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
3
src/solutions/mod.rs
Normal file
@ -0,0 +1,3 @@
|
||||
pub mod dayxx;
|
||||
|
||||
pub mod day01;
|
Reference in New Issue
Block a user