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§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
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
Source§impl<'py, T> FromPyObjectBound<'_, 'py> for Twhere
T: FromPyObject<'py>,
impl<'py, T> FromPyObjectBound<'_, 'py> for Twhere
T: FromPyObject<'py>,
Source§impl<'py, T> IntoPyObjectExt<'py> for Twhere
T: IntoPyObject<'py>,
impl<'py, T> IntoPyObjectExt<'py> for Twhere
T: IntoPyObject<'py>,
Source§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.