Skip to main content

FromPyArrowUnchecked

Trait FromPyArrowUnchecked 

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

Trait for converting Python objects to arrow-rs types without validation.

Prefer FromPyArrow where possible, as it validates the result before returning.

Required Methods§

Source

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

Convert a Python object to an arrow-rs type without validating the result.

§Safety

The data exported by the Python object must satisfy all Arrow spec invariants (valid offsets, buffer sizes, UTF-8, etc.) that [ArrayData::validate_full] checks.

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 FromPyArrowUnchecked for ArrayData

Source§

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

Source§

impl FromPyArrowUnchecked for RecordBatch

Source§

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

Implementors§