Skip to main content

evaluate_with_env

Function evaluate_with_env 

Source
pub fn evaluate_with_env(
    text: &str,
    file: Option<&str>,
    env: &mut Env,
) -> EvaluateResult
Expand description

Variant of evaluate that runs against a caller-owned Env instead of allocating a fresh one. Used by the REPL to preserve state across inputs.