Skip to main content

eval_with_functions_script

Function eval_with_functions_script 

Source
pub fn eval_with_functions_script(
    engine: &Engine,
    formula: &str,
    custom_script: Option<&str>,
) -> Result<Dynamic, String>
Expand description

Evaluate a formula with custom functions provided as script text. This version concatenates the scripts and evaluates them together, which properly handles closures accessing registered functions.