pub trait Evaluable: Debug {
    // Required methods
    fn evaluate(&mut self, ctx: &dyn EvalContext) -> Value;
    fn update_input(
        &mut self,
        input: Value,
        branch_num: u8,
        ctx: &dyn EvalContext
    );

    // Provided methods
    fn get_vars(&self) -> Option<&[String]> { ... }
    fn eval_type(&self) -> EvalType { ... }
}
Expand description

Evaluable represents each evaluation operator in the evaluation plan as an evaluable entity.

Required Methods§

source

fn evaluate(&mut self, ctx: &dyn EvalContext) -> Value

source

fn update_input(&mut self, input: Value, branch_num: u8, ctx: &dyn EvalContext)

Provided Methods§

source

fn get_vars(&self) -> Option<&[String]>

source

fn eval_type(&self) -> EvalType

Implementors§