Skip to main content

eval_const_expr

Function eval_const_expr 

Source
pub fn eval_const_expr(source: &str) -> Result<Value, EmbeddingError>
Expand description

Evaluate a constant expression by compiling it as a one-binding program: what a comprehension source such as partitions("*\/4", 1000) goes through. Cached by source text, so the same text compiles once per process (SRD 113 §5.2). An expression that reaches a dynamic input is a lifecycle error.