Expression

Trait Expression 

Source
pub trait Expression {
    // Required method
    fn evaluate(
        &self,
        context: &dyn EvaluationContext,
    ) -> Result<Box<dyn Any + Send + Sync + 'static>, Box<dyn Error + Send + Sync + 'static>>;
}

Required Methods§

Source

fn evaluate( &self, context: &dyn EvaluationContext, ) -> Result<Box<dyn Any + Send + Sync + 'static>, Box<dyn Error + Send + Sync + 'static>>

Calculate expression result with context

§Arguments
  • context - Context of evaluation
§Returns

The value of this expression

Implementors§