Trait polars_arrow::array::Arrow2Arrow

source ·
pub trait Arrow2Arrow: Array {
    // Required methods
    fn to_data(&self) -> ArrayData;
    fn from_data(data: &ArrayData) -> Self;
}
Expand description

Trait providing bi-directional conversion between polars_arrow Array and arrow-rs ArrayData

Required Methods§

source

fn to_data(&self) -> ArrayData

Convert this Array into [ArrayData]

source

fn from_data(data: &ArrayData) -> Self

Create this Array from [ArrayData]

Object Safety§

This trait is not object safe.

Implementors§