1 2 3 4 5 6 7 8 9
use crate::structs::StoneWall; pub trait Solver { fn new(n: u32) -> Self; fn solve(&mut self) -> StoneWall; fn n(&self) -> u32; fn h(&self) -> u32; fn w(&self) -> u32; }