[−][src]Trait pyo3::FromPyPointer
Raw level conversion between *mut ffi::PyObject
and PyO3 types.
Required methods
unsafe fn from_owned_ptr_or_opt(
py: Python<'p>,
ptr: *mut PyObject
) -> Option<Self>
py: Python<'p>,
ptr: *mut PyObject
) -> Option<Self>
unsafe fn from_borrowed_ptr_or_opt(
py: Python<'p>,
ptr: *mut PyObject
) -> Option<Self>
py: Python<'p>,
ptr: *mut PyObject
) -> Option<Self>
Provided methods
unsafe fn from_owned_ptr_or_panic(py: Python<'p>, ptr: *mut PyObject) -> Self
unsafe fn from_owned_ptr(py: Python<'p>, ptr: *mut PyObject) -> Self
unsafe fn from_owned_ptr_or_err(
py: Python<'p>,
ptr: *mut PyObject
) -> PyResult<Self>
py: Python<'p>,
ptr: *mut PyObject
) -> PyResult<Self>
unsafe fn from_borrowed_ptr_or_panic(py: Python<'p>, ptr: *mut PyObject) -> Self
unsafe fn from_borrowed_ptr(py: Python<'p>, ptr: *mut PyObject) -> Self
unsafe fn from_borrowed_ptr_or_err(
py: Python<'p>,
ptr: *mut PyObject
) -> PyResult<Self>
py: Python<'p>,
ptr: *mut PyObject
) -> PyResult<Self>
Implementations on Foreign Types
impl<'p, T> FromPyPointer<'p> for &'p T where
T: PyTypeInfo,
[src]
T: PyTypeInfo,
unsafe fn from_owned_ptr_or_opt(
py: Python<'p>,
ptr: *mut PyObject
) -> Option<Self>
[src]
py: Python<'p>,
ptr: *mut PyObject
) -> Option<Self>
unsafe fn from_borrowed_ptr_or_opt(
py: Python<'p>,
ptr: *mut PyObject
) -> Option<Self>
[src]
py: Python<'p>,
ptr: *mut PyObject
) -> Option<Self>
impl<'p, T> FromPyPointer<'p> for &'p mut T where
T: PyTypeInfo,
[src]
T: PyTypeInfo,
unsafe fn from_owned_ptr_or_opt(
py: Python<'p>,
ptr: *mut PyObject
) -> Option<Self>
[src]
py: Python<'p>,
ptr: *mut PyObject
) -> Option<Self>
unsafe fn from_borrowed_ptr_or_opt(
py: Python<'p>,
ptr: *mut PyObject
) -> Option<Self>
[src]
py: Python<'p>,
ptr: *mut PyObject
) -> Option<Self>
Implementors
impl<'p, T> FromPyPointer<'p> for PyRef<'p, T> where
T: PyTypeInfo,
[src]
T: PyTypeInfo,
unsafe fn from_owned_ptr_or_opt(
py: Python<'p>,
ptr: *mut PyObject
) -> Option<Self>
[src]
py: Python<'p>,
ptr: *mut PyObject
) -> Option<Self>
unsafe fn from_borrowed_ptr_or_opt(
py: Python<'p>,
ptr: *mut PyObject
) -> Option<Self>
[src]
py: Python<'p>,
ptr: *mut PyObject
) -> Option<Self>
impl<'p, T> FromPyPointer<'p> for PyRefMut<'p, T> where
T: PyTypeInfo,
[src]
T: PyTypeInfo,