Skip to main content

with_stdlib_ctx

Function with_stdlib_ctx 

Source
pub fn with_stdlib_ctx<F, R>(f: F) -> R
where F: FnOnce(&EvalContext) -> R,
Expand description

Get a reference to the shared stdlib EvalContext. Use this for stdlib callback invocations instead of creating throwaway contexts.