pub trait Algorithm { // Required methods fn run(&mut self) -> Result<()>; fn has_finished(&self) -> bool; }