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§

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>

Object Safety§

This trait is not object safe.

Implementors§