Trait polars_lazy::dsl::SeriesBinaryUdf

pub trait SeriesBinaryUdf: Send + Sync {
    // Required method
    fn call_udf(&self, a: Series, b: Series) -> Result<Series, PolarsError>;
}
Expand description

A wrapper trait for any binary closure Fn(Series, Series) -> PolarsResult<Series>

Required Methods§

fn call_udf(&self, a: Series, b: Series) -> Result<Series, PolarsError>

Trait Implementations§

§

impl Debug for dyn SeriesBinaryUdf

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Implementors§

§

impl<F> SeriesBinaryUdf for F
where F: Fn(Series, Series) -> Result<Series, PolarsError> + Send + Sync,