# pyo3::conversion::IntoPyPointer - Rust
This trait allows retrieving the underlying FFI pointer from Python objects.
Keywords: rust, rustlang, rust-lang, IntoPyPointer

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

    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` [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.

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

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

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

Loading content...

## Implementors

### `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...