Trait polars_core::schema::SchemaExt
source · 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>;
}
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>
Object Safety§
This trait is not object safe.