pub fn new(steps: Vec<Box<dyn StepTrait>>) -> Runner
Creates a new Runner instance with the given steps.
Runner
63 64 65 66 67 68 69 70
fn main() { let step_one = StepOne {}; let step_two = StepTwo {}; let runner = crazy_train::new(vec![Box::new(step_one), Box::new(step_two)]); let res = runner.run(); println!("{res:#?}"); }