pub trait Evaluate {
// Required methods
fn evaluate<'ea>(
&self,
context: &mut EvaluationContext<'ea, impl Evaluate>,
) -> String;
fn get_dependencies(&self) -> &Dependencies;
}Expand description
Every evaluator should have function to evaluate itself with a context, a dependencies getter.
Required Methods§
fn evaluate<'ea>( &self, context: &mut EvaluationContext<'ea, impl Evaluate>, ) -> String
fn get_dependencies(&self) -> &Dependencies
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.