polars_lazy::dsl

Trait UdfSchema

pub trait UdfSchema: Send + Sync {
    // Required method
    fn get_schema(
        &self,
        input_schema: &Schema<DataType>,
    ) -> Result<Arc<Schema<DataType>>, PolarsError>;
}

Required Methods§

fn get_schema( &self, input_schema: &Schema<DataType>, ) -> Result<Arc<Schema<DataType>>, PolarsError>

Trait Implementations§

§

impl Debug for dyn UdfSchema

§

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

Formats the value using the given formatter. Read more

Implementors§

§

impl<F> UdfSchema for F
where F: Fn(&Schema<DataType>) -> Result<Arc<Schema<DataType>>, PolarsError> + Send + Sync,