pub struct PyArrowType<T>(pub T);Expand description
A newtype wrapper for types implementing FromPyArrow or IntoPyArrow.
When wrapped around a type T: FromPyArrow, it
implements [FromPyObject] for the PyArrow objects. When wrapped around a
T: IntoPyArrow, it implements IntoPy<PyObject> for the wrapped type.
Tuple Fields§
§0: TTrait Implementations§
Source§impl<T: Debug> Debug for PyArrowType<T>
 
impl<T: Debug> Debug for PyArrowType<T>
Source§impl<T> From<T> for PyArrowType<T>
 
impl<T> From<T> for PyArrowType<T>
Source§impl<'source, T: FromPyArrow> FromPyObject<'source> for PyArrowType<T>
 
impl<'source, T: FromPyArrow> FromPyObject<'source> for PyArrowType<T>
Source§fn extract_bound(value: &Bound<'source, PyAny>) -> PyResult<Self>
 
fn extract_bound(value: &Bound<'source, PyAny>) -> PyResult<Self>
Source§impl<'py, T: IntoPyArrow> IntoPyObject<'py> for PyArrowType<T>
 
impl<'py, T: IntoPyArrow> IntoPyObject<'py> for PyArrowType<T>
Source§type Output = Bound<'py, <PyArrowType<T> as IntoPyObject<'py>>::Target>
 
type Output = Bound<'py, <PyArrowType<T> as IntoPyObject<'py>>::Target>
The smart pointer type to use. Read more
Source§fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, PyErr>
 
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, PyErr>
Performs the conversion.
Auto Trait Implementations§
impl<T> Freeze for PyArrowType<T>where
    T: Freeze,
impl<T> RefUnwindSafe for PyArrowType<T>where
    T: RefUnwindSafe,
impl<T> Send for PyArrowType<T>where
    T: Send,
impl<T> Sync for PyArrowType<T>where
    T: Sync,
impl<T> Unpin for PyArrowType<T>where
    T: Unpin,
impl<T> UnwindSafe for PyArrowType<T>where
    T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<'py, T> FromPyObjectBound<'_, 'py> for Twhere
    T: FromPyObject<'py>,
 
impl<'py, T> FromPyObjectBound<'_, 'py> for Twhere
    T: FromPyObject<'py>,
§fn from_py_object_bound(ob: Borrowed<'_, 'py, PyAny>) -> Result<T, PyErr>
 
fn from_py_object_bound(ob: Borrowed<'_, 'py, PyAny>) -> Result<T, PyErr>
§impl<'py, T> IntoPyObjectExt<'py> for Twhere
    T: IntoPyObject<'py>,
 
impl<'py, T> IntoPyObjectExt<'py> for Twhere
    T: IntoPyObject<'py>,
§fn into_bound_py_any(self, py: Python<'py>) -> Result<Bound<'py, PyAny>, PyErr>
 
fn into_bound_py_any(self, py: Python<'py>) -> Result<Bound<'py, PyAny>, PyErr>
Converts 
self into an owned Python object, dropping type information.§fn into_py_any(self, py: Python<'py>) -> Result<Py<PyAny>, PyErr>
 
fn into_py_any(self, py: Python<'py>) -> Result<Py<PyAny>, PyErr>
Converts 
self into an owned Python object, dropping type information and unbinding it
from the 'py lifetime.§fn into_pyobject_or_pyerr(self, py: Python<'py>) -> Result<Self::Output, PyErr>
 
fn into_pyobject_or_pyerr(self, py: Python<'py>) -> Result<Self::Output, PyErr>
Converts 
self into a Python object. Read more