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