Skip to main content

create_engine_with_functions

Function create_engine_with_functions 

Source
pub fn create_engine_with_functions(
    grid: Arc<Grid>,
    custom_script: Option<&str>,
) -> (Engine, Option<AST>, Option<String>)
Expand description

Create a Rhai engine with built-ins registered. Optionally compiles custom functions from the provided script. Returns the engine, compiled AST (if any), and any error message.