pub trait ColumnsUdf: Send + Sync {
// Required method
fn call_udf(&self, s: &mut [Column]) -> Result<Option<Column>, PolarsError>;
// Provided methods
fn as_any(&self) -> &(dyn Any + 'static) { ... }
fn resolve_dsl(
&self,
input_schema: &Schema<DataType>,
) -> Result<(), PolarsError> { ... }
fn try_serialize(&self, _buf: &mut Vec<u8>) -> Result<(), PolarsError> { ... }
}
Expand description
A wrapper trait for any closure Fn(Vec<Series>) -> PolarsResult<Series>
Required Methods§
Provided Methods§
fn as_any(&self) -> &(dyn Any + 'static)
Sourcefn resolve_dsl(
&self,
input_schema: &Schema<DataType>,
) -> Result<(), PolarsError>
fn resolve_dsl( &self, input_schema: &Schema<DataType>, ) -> Result<(), PolarsError>
Called when converting from DSL to IR with the input schema to the expression.