polars::prelude

Trait UdfSchema

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

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,