polars_lazy::dsl

Trait ColumnBinaryUdf

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

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

Required Methods§

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

Trait Implementations§

§

impl Debug for dyn ColumnBinaryUdf

§

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

Formats the value using the given formatter. Read more

Implementors§

§

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