pub trait FunctionRegistry: Send + Sync {
// Required methods
fn register(
&mut self,
name: &str,
fun: UserDefinedFunction
) -> PolarsResult<()>;
fn get_udf(&self, name: &str) -> PolarsResult<Option<UserDefinedFunction>>;
fn contains(&self, name: &str) -> bool;
}
Expand description
A registry that holds user defined functions.
Required Methods§
sourcefn register(&mut self, name: &str, fun: UserDefinedFunction) -> PolarsResult<()>
fn register(&mut self, name: &str, fun: UserDefinedFunction) -> PolarsResult<()>
Register a function.