pub trait MethodFunction: SqlFunction {
// Required methods
fn handles_method(&self, method_name: &str) -> bool;
fn method_name(&self) -> &'static str;
// Provided method
fn evaluate_method(
&self,
receiver: &DataValue,
args: &[DataValue],
) -> Result<DataValue> { ... }
}
Expand description
Trait for method-style functions that operate on a column/value These are called with dot notation: column.Method(args)
Required Methods§
Sourcefn handles_method(&self, method_name: &str) -> bool
fn handles_method(&self, method_name: &str) -> bool
Check if this method function handles the given method name
Sourcefn method_name(&self) -> &'static str
fn method_name(&self) -> &'static str
Get the method name this function handles