pub trait ExpressionFunction: Send + Sync {
// Required methods
fn name(&self) -> &str;
fn arity(&self) -> usize;
fn is_variadic(&self) -> bool;
fn execute(&self, args: &[Value]) -> Result<Value, ExpressionError>;
fn description(&self) -> &str;
}Expand description
Expression function characteristics
Required Methods§
Sourcefn is_variadic(&self) -> bool
fn is_variadic(&self) -> bool
Check whether variable parameters are accepted.
Sourcefn description(&self) -> &str
fn description(&self) -> &str
Obtain the function description
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".