Trait polars_plan::dsl::SeriesUdf
source · pub trait SeriesUdf: Send + Sync {
// Required method
fn call_udf(&self, s: &mut [Series]) -> PolarsResult<Option<Series>>;
// Provided methods
fn as_any(&self) -> &dyn Any { ... }
fn try_serialize(&self, _buf: &mut Vec<u8>) -> PolarsResult<()> { ... }
fn get_output(&self) -> Option<GetOutput> { ... }
}
Expand description
A wrapper trait for any closure Fn(Vec<Series>) -> PolarsResult<Series>