pub trait ScalarFunction: Plugin {
// Required method
fn call(
&self,
args: &[PropertyValue],
) -> Result<PropertyValue, CypherLiteError>;
}Expand description
A user-defined scalar function callable from Cypher queries.
Accepts zero or more PropertyValue arguments and returns a single
PropertyValue.
Required Methods§
Sourcefn call(&self, args: &[PropertyValue]) -> Result<PropertyValue, CypherLiteError>
fn call(&self, args: &[PropertyValue]) -> Result<PropertyValue, CypherLiteError>
Execute the function with the given arguments.