Trait polars::prelude::UdfSchema

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

Required Methods§

source

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

Trait Implementations§

source§

impl Debug for dyn UdfSchema

source§

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

Formats the value using the given formatter. Read more

Implementors§

source§

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