Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
FromPyArrow in datafusion::common::arrow::pyarrow - Rust
[go: Go Back, main page]

Trait FromPyArrow

Source
pub trait FromPyArrow: Sized {
    // Required method
    fn from_pyarrow_bound(value: &Bound<'_, PyAny>) -> Result<Self, PyErr>;
}
Available on crate feature pyarrow only.
Expand description

Trait for converting Python objects to arrow-rs types.

Required Methods§

Source

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

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<T> FromPyArrow for Vec<T>
where T: FromPyArrow,

Implementors§