Skip to main content

ToPyArrow

Trait ToPyArrow 

Source
pub trait ToPyArrow {
    // Required method
    fn to_pyarrow<'py>(&self, py: Python<'py>) -> PyResult<Bound<'py, PyAny>>;
}
Expand description

Create a new PyArrow object from a arrow-rs type.

Required Methods§

Source

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

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

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl ToPyArrow for ArrayData

Source§

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

Source§

impl ToPyArrow for DataType

Source§

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

Source§

impl ToPyArrow for Field

Source§

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

Source§

impl ToPyArrow for RecordBatch

Source§

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

Source§

impl ToPyArrow for Schema

Source§

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

Source§

impl<T: ToPyArrow> ToPyArrow for Vec<T>

Source§

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

Implementors§