polars_core::schema

Trait 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>;
    fn materialize_unknown_dtypes(&self) -> PolarsResult<Schema>;
}

Required Methods§

Source

fn from_arrow_schema(value: &ArrowSchema) -> Self

Source

fn get_field(&self, name: &str) -> Option<Field>

Source

fn try_get_field(&self, name: &str) -> PolarsResult<Field>

Source

fn to_arrow(&self, compat_level: CompatLevel) -> ArrowSchema

Source

fn iter_fields(&self) -> impl ExactSizeIterator<Item = Field> + '_

Source

fn to_supertype(&mut self, other: &Schema) -> PolarsResult<bool>

Source

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.

Implementors§