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

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

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

Required methods

fn into_ptr(self) -> *mut PyObject

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 IntoPyPointer for PyObject[src]

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

Gets the underlying FFI pointer, returns a owned pointer.

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

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

Gets the underlying FFI pointer, returns a owned pointer.

Loading content...