[−][src]Function fasteval::ez::ez_eval
pub fn ez_eval(
expr_str: &str,
ns: &mut impl EvalNamespace
) -> Result<f64, Error>
The ez_eval()
function provides a very simple way to perform expression evaluation with just one function call.
If you only need to evaluate an expression one time, then ez_eval()
will
probably be perfectly adequate. But if you plan to evaluate the same
expression many times, or if you plan to evaluate many expressions, you
are able to achieve better performance by allocating a single Slab
and
using it to perform multiple parse-compile-eval cycles yourself.
Errors
If there are any Error
s during the parse-eval process, they will be returned.