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.
Sourcefn get_udf(&self, name: &str) -> PolarsResult<Option<UserDefinedFunction>>
fn get_udf(&self, name: &str) -> PolarsResult<Option<UserDefinedFunction>>
Call a user defined function.