Function rhai::run

source ·
pub fn run(script: &str) -> Result<(), Box<EvalAltResult>>
Expand description

Evaluate a string as a script.

Example

rhai::run("print(40 + 2);")?;