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§
Sourceunsafe fn from_pyarrow_bound_unchecked(
value: &Bound<'_, PyAny>,
) -> PyResult<Self>
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".