polars_plan::plans

Trait UdfSchema

Source
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,