Skip to main content

run

Function run 

Source
pub fn run(
    program: &Program,
    options: &Options,
    print: &mut (dyn FnMut(&str) + Send),
) -> Result<Outcome, RuntimeError>
Expand description

Run a program. print receives the output of print(…) as it happens. Every problem, including a crash of the engine itself, comes back as an error.