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

Required Methods§

source

fn get_schema(&self, input_schema: &Schema) -> PolarsResult<SchemaRef>

Trait Implementations§

source§

impl Debug for dyn UdfSchema

source§

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

Formats the value using the given formatter. Read more

Implementors§

source§

impl<F> UdfSchema for F
where F: Fn(&Schema) -> PolarsResult<SchemaRef> + Send + Sync,