Skip to main content

IntoPyArrow

Trait IntoPyArrow 

Source
pub trait IntoPyArrow {
    const OUTPUT_TYPE: PyStaticExpr = _;

    // Required method
    fn into_pyarrow<'py>(self, py: Python<'py>) -> PyResult<Bound<'py, PyAny>>;
}
Expand description

Convert an arrow-rs type into a PyArrow object.

Provided Associated Constants§

Source

const OUTPUT_TYPE: PyStaticExpr = _

The Python type this conversion produces, as a type hint.

See ToPyArrow::OUTPUT_TYPE.

Required Methods§

Source

fn into_pyarrow<'py>(self, py: Python<'py>) -> PyResult<Bound<'py, PyAny>>

Convert the implemented type into a Python object while consuming it.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl IntoPyArrow for ArrowArrayStreamReader

Convert a [ArrowArrayStreamReader] into a pyarrow.RecordBatchReader.

Source§

const OUTPUT_TYPE: PyStaticExpr

Source§

fn into_pyarrow<'py>(self, py: Python<'py>) -> PyResult<Bound<'py, PyAny>>

Source§

impl IntoPyArrow for Box<dyn RecordBatchReader + Send>

Convert a [RecordBatchReader] into a pyarrow.RecordBatchReader.

Source§

const OUTPUT_TYPE: PyStaticExpr

Source§

fn into_pyarrow<'py>(self, py: Python<'py>) -> PyResult<Bound<'py, PyAny>>

Implementors§

Source§

impl IntoPyArrow for Table

Convert a Table into pyarrow.Table.

Source§

const OUTPUT_TYPE: PyStaticExpr

Source§

impl<T: ToPyArrow> IntoPyArrow for T

Source§

const OUTPUT_TYPE: PyStaticExpr = <T as ToPyArrow>::OUTPUT_TYPE