Trait rustcn_ui::EvalProvider
source · pub trait EvalProvider {
// Required method
fn new_evaluator(&self, js: String) -> GenerationalBox<Box<dyn Evaluator>>;
}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.