Skip to main content

set_eval_callback

Function set_eval_callback 

Source
pub fn set_eval_callback(ctx: &EvalContext, f: EvalCallbackFn)
Expand description

Register the full evaluator callback. Called by sema-eval during interpreter init. Stores into both ctx and the shared STDLIB_CTX so that stdlib simple-fn closures (which lack a ctx parameter) can still invoke the evaluator.