Trait re_sdk::external::arrow::pyarrow::FromPyArrow
pub trait FromPyArrow: Sized {
// Required method
fn from_pyarrow_bound(value: &Bound<'_, PyAny>) -> Result<Self, PyErr>;
}
Expand description
Trait for converting Python objects to arrow-rs types.
Required Methods§
fn from_pyarrow_bound(value: &Bound<'_, PyAny>) -> Result<Self, PyErr>
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.
Object Safety§
This trait is not object safe.
Implementations on Foreign Types§
§impl<T> FromPyArrow for Vec<T>where
T: FromPyArrow,
impl<T> FromPyArrow for Vec<T>where
T: FromPyArrow,
fn from_pyarrow_bound(value: &Bound<'_, PyAny>) -> Result<Vec<T>, PyErr>
Implementors§
impl FromPyArrow for DataType
impl FromPyArrow for ArrowArrayStreamReader
Supports conversion from pyarrow.RecordBatchReader
to ArrowArrayStreamReader.