Skip to main content

create_engine_with_functions_and_cache

Function create_engine_with_functions_and_cache 

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

Create a Rhai engine with built-ins, custom functions, and shared value cache. Returns the engine, compiled AST (if any), and any error message.