[][src]Trait pyo3::conversion::IntoPyPointer

pub trait IntoPyPointer {
    pub fn into_ptr(self) -> *mut PyObject;
}

This trait allows retrieving the underlying FFI pointer from Python objects.

Required methods

pub fn into_ptr(self) -> *mut PyObject[src]

Retrieves the underlying FFI pointer. Whether pointer owned or borrowed depends on implementation.

Loading content...

Implementations on Foreign Types

impl<T> IntoPyPointer for Option<T> where
    T: IntoPyPointer
[src]

Convert None into a null pointer.

impl<'a, T> IntoPyPointer for &'a T where
    T: AsPyPointer
[src]

Loading content...

Implementors

impl<T> IntoPyPointer for Py<T>[src]

#[must_use]pub fn into_ptr(self) -> *mut PyObject[src]

Gets the underlying FFI pointer, returns a owned pointer.

Loading content...