Trait FromPyArrow

Source
pub trait FromPyArrow: Sized {
    // Required method
    fn from_pyarrow_bound(value: &Bound<'_, PyAny>) -> PyResult<Self>;
}
Expand description

Trait for converting Python objects to arrow-rs types.

Required Methods§

Source

fn from_pyarrow_bound(value: &Bound<'_, PyAny>) -> PyResult<Self>

Convert a Python object to an arrow-rs type.

Takes a GIL-bound value from Python and returns a result with the arrow-rs type.

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.

Implementations on Foreign Types§

Source§

impl FromPyArrow for ArrayData

Source§

fn from_pyarrow_bound(value: &Bound<'_, PyAny>) -> PyResult<Self>

Source§

impl FromPyArrow for ArrowArrayStreamReader

Supports conversion from pyarrow.RecordBatchReader to [ArrowArrayStreamReader].

Source§

fn from_pyarrow_bound(value: &Bound<'_, PyAny>) -> PyResult<Self>

Source§

impl FromPyArrow for DataType

Source§

fn from_pyarrow_bound(value: &Bound<'_, PyAny>) -> PyResult<Self>

Source§

impl FromPyArrow for Field

Source§

fn from_pyarrow_bound(value: &Bound<'_, PyAny>) -> PyResult<Self>

Source§

impl FromPyArrow for RecordBatch

Source§

fn from_pyarrow_bound(value: &Bound<'_, PyAny>) -> PyResult<Self>

Source§

impl FromPyArrow for Schema

Source§

fn from_pyarrow_bound(value: &Bound<'_, PyAny>) -> PyResult<Self>

Source§

impl<T: FromPyArrow> FromPyArrow for Vec<T>

Source§

fn from_pyarrow_bound(value: &Bound<'_, PyAny>) -> PyResult<Self>

Implementors§