pub trait EvalProvider {
    // Required method
    fn new_evaluator(&self, js: String) -> Result<Rc<dyn Evaluator>, EvalError>;
}
Expand description

A struct that implements EvalProvider is sent through ScopeState’s provide_context function so that use_eval can provide a platform agnostic interface for evaluating JavaScript code.

Required Methods§

Implementors§