crazy_train

Function new

source
pub fn new(steps: Vec<Box<dyn StepTrait>>) -> Runner
Expand description

Creates a new Runner instance with the given steps.

Examples found in repository?
examples/run.rs (line 66)
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:#?}");
}