Skip to main content

LoadScript

Function LoadScript 

Source
pub fn LoadScript(engine: &Engine, script_path: &str) -> Result<AST, String>
Expand description

Loads and compiles a Rhai script.

§Arguments

  • engine - The Rhai engine instance
  • script_path - Path to the script file

§Returns

Result containing the compiled AST