pub trait SchemaExt {
// Required methods
fn from_arrow_schema(value: &ArrowSchema) -> Self;
fn get_field(&self, name: &str) -> Option<Field>;
fn try_get_field(&self, name: &str) -> PolarsResult<Field>;
fn to_arrow(&self, compat_level: CompatLevel) -> ArrowSchema;
fn iter_fields(&self) -> impl ExactSizeIterator<Item = Field> + '_;
fn to_supertype(&mut self, other: &Schema) -> PolarsResult<bool>;
fn materialize_unknown_dtypes(&self) -> PolarsResult<Schema>;
}
Required Methods§
fn from_arrow_schema(value: &ArrowSchema) -> Self
fn get_field(&self, name: &str) -> Option<Field>
fn try_get_field(&self, name: &str) -> PolarsResult<Field>
fn to_arrow(&self, compat_level: CompatLevel) -> ArrowSchema
fn iter_fields(&self) -> impl ExactSizeIterator<Item = Field> + '_
fn to_supertype(&mut self, other: &Schema) -> PolarsResult<bool>
fn materialize_unknown_dtypes(&self) -> PolarsResult<Schema>
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.