pub trait StructTypePolarsExt: Sized {
// Required methods
fn from_polars_schema(schema: &Schema<DataType, ()>) -> Self;
fn to_polars_schema(&self) -> Schema<DataType, ()>;
}Expand description
Extension trait for Polars schema conversion. Implemented for StructType from core.
Bring this trait into scope to use StructType::from_polars_schema and to_polars_schema.
Required Methods§
fn from_polars_schema(schema: &Schema<DataType, ()>) -> Self
fn to_polars_schema(&self) -> Schema<DataType, ()>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.