pub trait Eval {
type Output;
// Required method
fn eval(self, vm: &mut Vm<'_>) -> SourceResult<Self::Output>;
}
Expand description
Evaluate an expression.
Required Associated Types§
Required Methods§
Sourcefn eval(self, vm: &mut Vm<'_>) -> SourceResult<Self::Output>
fn eval(self, vm: &mut Vm<'_>) -> SourceResult<Self::Output>
Evaluate the expression to the output value.