Trait arithmetic_eval::NativeFn
source · pub trait NativeFn<T> {
// Required method
fn evaluate(
&self,
args: Vec<SpannedValue<T>>,
context: &mut CallContext<'_, T>,
) -> EvalResult<T>;
}
Expand description
Required Methods§
sourcefn evaluate(
&self,
args: Vec<SpannedValue<T>>,
context: &mut CallContext<'_, T>,
) -> EvalResult<T>
fn evaluate( &self, args: Vec<SpannedValue<T>>, context: &mut CallContext<'_, T>, ) -> EvalResult<T>
Executes the function on the specified arguments.