pub trait AdvancedBuiltinFunction: Send + Sync {
// Required methods
fn name(&self) -> &str;
fn execute_with_expressions(
&self,
args: &[PathExpression],
evaluator: &ExpressionEvaluator,
input: &Value,
) -> Result<Vec<Value>, EvaluationError>;
// Provided method
fn description(&self) -> &str { ... }
}Expand description
高级内置函数 trait(支持表达式参数)
Required Methods§
Sourcefn execute_with_expressions(
&self,
args: &[PathExpression],
evaluator: &ExpressionEvaluator,
input: &Value,
) -> Result<Vec<Value>, EvaluationError>
fn execute_with_expressions( &self, args: &[PathExpression], evaluator: &ExpressionEvaluator, input: &Value, ) -> Result<Vec<Value>, EvaluationError>
执行函数(支持表达式参数)
Provided Methods§
Sourcefn description(&self) -> &str
fn description(&self) -> &str
函数描述