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: T
Trait 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