# pyo3::conversion::IntoPy - Rust
Similar to [std::convert::Into], just that it requires a gil token.
Keywords: rust, rustlang, rust-lang, IntoPy

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

    pub trait IntoPy<T>: Sized {
        fn into_py(self, py: Python<'_>) -> T;
    }

Similar to std::convert::Into, just that it requires a gil token.

`IntoPy<PyObject>` (aka `IntoPy<Py<PyAny>>`) should be implemented to define a conversion from Rust to Python which can be used by most of PyO3’s methods.

## Required methods

### `fn into_py(self, py: Python<'_>) -> T` [src]

Performs the conversion.

Loading content...

## Implementations on Foreign Types

### `impl<T> IntoPy<Py<PyAny>> for Option<T> where
T: IntoPy<PyObject>,` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl IntoPy<Py<PyAny>> for ()` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl<T> IntoPy<Py<PyAny>> for &T where
T: AsPyPointer,` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl IntoPy<Py<PyTuple>> for ()` [src]

Converts `()` to an empty Python tuple.

#### `fn into_py(self, py: Python<'_>) -> Py<PyTuple>` [src]

### `impl IntoPy<Py<PyAny>> for bool` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl<'a> IntoPy<Py<PyAny>> for &'a [u8]` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl<K, V, H> IntoPy<Py<PyAny>> for HashMap<K, V, H> where
K: Hash + Eq + IntoPy<PyObject>,
V: IntoPy<PyObject>,
H: BuildHasher,` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl<K, V> IntoPy<Py<PyAny>> for BTreeMap<K, V> where
K: Eq + IntoPy<PyObject>,
V: IntoPy<PyObject>,` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl IntoPy<Py<PyAny>> for f64` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl IntoPy<Py<PyAny>> for f32` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl<T> IntoPy<Py<PyAny>> for [T; 0] where
T: ToPyObject,` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl<T> IntoPy<Py<PyAny>> for [T; 1] where
T: ToPyObject,` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl<T> IntoPy<Py<PyAny>> for [T; 2] where
T: ToPyObject,` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl<T> IntoPy<Py<PyAny>> for [T; 3] where
T: ToPyObject,` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl<T> IntoPy<Py<PyAny>> for [T; 4] where
T: ToPyObject,` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl<T> IntoPy<Py<PyAny>> for [T; 5] where
T: ToPyObject,` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl<T> IntoPy<Py<PyAny>> for [T; 6] where
T: ToPyObject,` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl<T> IntoPy<Py<PyAny>> for [T; 7] where
T: ToPyObject,` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl<T> IntoPy<Py<PyAny>> for [T; 8] where
T: ToPyObject,` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl<T> IntoPy<Py<PyAny>> for [T; 9] where
T: ToPyObject,` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl<T> IntoPy<Py<PyAny>> for [T; 10] where
T: ToPyObject,` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl<T> IntoPy<Py<PyAny>> for [T; 11] where
T: ToPyObject,` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl<T> IntoPy<Py<PyAny>> for [T; 12] where
T: ToPyObject,` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl<T> IntoPy<Py<PyAny>> for [T; 13] where
T: ToPyObject,` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl<T> IntoPy<Py<PyAny>> for [T; 14] where
T: ToPyObject,` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl<T> IntoPy<Py<PyAny>> for [T; 15] where
T: ToPyObject,` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl<T> IntoPy<Py<PyAny>> for [T; 16] where
T: ToPyObject,` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl<T> IntoPy<Py<PyAny>> for [T; 17] where
T: ToPyObject,` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl<T> IntoPy<Py<PyAny>> for [T; 18] where
T: ToPyObject,` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl<T> IntoPy<Py<PyAny>> for [T; 19] where
T: ToPyObject,` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl<T> IntoPy<Py<PyAny>> for [T; 20] where
T: ToPyObject,` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl<T> IntoPy<Py<PyAny>> for [T; 21] where
T: ToPyObject,` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl<T> IntoPy<Py<PyAny>> for [T; 22] where
T: ToPyObject,` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl<T> IntoPy<Py<PyAny>> for [T; 23] where
T: ToPyObject,` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl<T> IntoPy<Py<PyAny>> for [T; 24] where
T: ToPyObject,` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl<T> IntoPy<Py<PyAny>> for [T; 25] where
T: ToPyObject,` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl<T> IntoPy<Py<PyAny>> for [T; 26] where
T: ToPyObject,` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl<T> IntoPy<Py<PyAny>> for [T; 27] where
T: ToPyObject,` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl<T> IntoPy<Py<PyAny>> for [T; 28] where
T: ToPyObject,` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl<T> IntoPy<Py<PyAny>> for [T; 29] where
T: ToPyObject,` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl<T> IntoPy<Py<PyAny>> for [T; 30] where
T: ToPyObject,` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl<T> IntoPy<Py<PyAny>> for [T; 31] where
T: ToPyObject,` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl<T> IntoPy<Py<PyAny>> for [T; 32] where
T: ToPyObject,` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl<T> IntoPy<Py<PyAny>> for Vec<T> where
T: IntoPy<PyObject>,` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl IntoPy<Py<PyAny>> for i8` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl IntoPy<Py<PyAny>> for u8` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl IntoPy<Py<PyAny>> for i16` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl IntoPy<Py<PyAny>> for u16` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl IntoPy<Py<PyAny>> for i32` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl IntoPy<Py<PyAny>> for u32` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl IntoPy<Py<PyAny>> for i64` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl IntoPy<Py<PyAny>> for isize` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl IntoPy<Py<PyAny>> for usize` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl IntoPy<Py<PyAny>> for u64` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl IntoPy<Py<PyAny>> for i128` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl IntoPy<Py<PyAny>> for u128` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl<K, S> IntoPy<Py<PyAny>> for HashSet<K, S> where
K: IntoPy<PyObject> + Eq + Hash,
S: BuildHasher + Default,` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl<K> IntoPy<Py<PyAny>> for BTreeSet<K> where
K: IntoPy<PyObject> + Ord,` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl<'a> IntoPy<Py<PyAny>> for &'a str` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl IntoPy<Py<PyAny>> for char` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl IntoPy<Py<PyAny>> for String` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl<'a> IntoPy<Py<PyAny>> for &'a String` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl<A: IntoPy<PyObject>> IntoPy<Py<PyAny>> for (A,)` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl<A: IntoPy<PyObject>> IntoPy<Py<PyTuple>> for (A,)` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyTuple>` [src]

### `impl<A: IntoPy<PyObject>, B: IntoPy<PyObject>> IntoPy<Py<PyAny>> for (A, B)` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl<A: IntoPy<PyObject>, B: IntoPy<PyObject>> IntoPy<Py<PyTuple>> for (A, B)` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyTuple>` [src]

### `impl<A: IntoPy<PyObject>, B: IntoPy<PyObject>, C: IntoPy<PyObject>> IntoPy<Py<PyAny>> for (A, B, C)` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl<A: IntoPy<PyObject>, B: IntoPy<PyObject>, C: IntoPy<PyObject>> IntoPy<Py<PyTuple>> for (A, B, C)` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyTuple>` [src]

### `impl<A: IntoPy<PyObject>, B: IntoPy<PyObject>, C: IntoPy<PyObject>, D: IntoPy<PyObject>> IntoPy<Py<PyAny>> for (A, B, C, D)` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl<A: IntoPy<PyObject>, B: IntoPy<PyObject>, C: IntoPy<PyObject>, D: IntoPy<PyObject>> IntoPy<Py<PyTuple>> for (A, B, C, D)` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyTuple>` [src]

### `impl<A: IntoPy<PyObject>, B: IntoPy<PyObject>, C: IntoPy<PyObject>, D: IntoPy<PyObject>, E: IntoPy<PyObject>> IntoPy<Py<PyAny>> for (A, B, C, D, E)` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl<A: IntoPy<PyObject>, B: IntoPy<PyObject>, C: IntoPy<PyObject>, D: IntoPy<PyObject>, E: IntoPy<PyObject>> IntoPy<Py<PyTuple>> for (A, B, C, D, E)` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyTuple>` [src]

### `impl<A: IntoPy<PyObject>, B: IntoPy<PyObject>, C: IntoPy<PyObject>, D: IntoPy<PyObject>, E: IntoPy<PyObject>, F: IntoPy<PyObject>> IntoPy<Py<PyAny>> for (A, B, C, D, E, F)` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl<A: IntoPy<PyObject>, B: IntoPy<PyObject>, C: IntoPy<PyObject>, D: IntoPy<PyObject>, E: IntoPy<PyObject>, F: IntoPy<PyObject>> IntoPy<Py<PyTuple>> for (A, B, C, D, E, F)` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyTuple>` [src]

### `impl<A: IntoPy<PyObject>, B: IntoPy<PyObject>, C: IntoPy<PyObject>, D: IntoPy<PyObject>, E: IntoPy<PyObject>, F: IntoPy<PyObject>, G: IntoPy<PyObject>> IntoPy<Py<PyAny>> for (A, B, C, D, E, F, G)` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl<A: IntoPy<PyObject>, B: IntoPy<PyObject>, C: IntoPy<PyObject>, D: IntoPy<PyObject>, E: IntoPy<PyObject>, F: IntoPy<PyObject>, G: IntoPy<PyObject>> IntoPy<Py<PyTuple>> for (A, B, C, D, E, F, G)` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyTuple>` [src]

### `impl<A: IntoPy<PyObject>, B: IntoPy<PyObject>, C: IntoPy<PyObject>, D: IntoPy<PyObject>, E: IntoPy<PyObject>, F: IntoPy<PyObject>, G: IntoPy<PyObject>, H: IntoPy<PyObject>> IntoPy<Py<PyAny>> for (A, B, C, D, E, F, G, H)` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl<A: IntoPy<PyObject>, B: IntoPy<PyObject>, C: IntoPy<PyObject>, D: IntoPy<PyObject>, E: IntoPy<PyObject>, F: IntoPy<PyObject>, G: IntoPy<PyObject>, H: IntoPy<PyObject>> IntoPy<Py<PyTuple>> for (A, B, C, D, E, F, G, H)` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyTuple>` [src]

### `impl<A: IntoPy<PyObject>, B: IntoPy<PyObject>, C: IntoPy<PyObject>, D: IntoPy<PyObject>, E: IntoPy<PyObject>, F: IntoPy<PyObject>, G: IntoPy<PyObject>, H: IntoPy<PyObject>, I: IntoPy<PyObject>> IntoPy<Py<PyAny>> for (A, B, C, D, E, F, G, H, I)` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl<A: IntoPy<PyObject>, B: IntoPy<PyObject>, C: IntoPy<PyObject>, D: IntoPy<PyObject>, E: IntoPy<PyObject>, F: IntoPy<PyObject>, G: IntoPy<PyObject>, H: IntoPy<PyObject>, I: IntoPy<PyObject>> IntoPy<Py<PyTuple>> for (A, B, C, D, E, F, G, H, I)` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyTuple>` [src]

Loading content...

## Implementors

### `impl IntoPy<Py<CancelledError>> for &CancelledError` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<CancelledError>` [src]

### `impl IntoPy<Py<IncompleteReadError>> for &IncompleteReadError` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<IncompleteReadError>` [src]

### `impl IntoPy<Py<InvalidStateError>> for &InvalidStateError` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<InvalidStateError>` [src]

### `impl IntoPy<Py<LimitOverrunError>> for &LimitOverrunError` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<LimitOverrunError>` [src]

### `impl IntoPy<Py<QueueEmpty>> for &QueueEmpty` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<QueueEmpty>` [src]

### `impl IntoPy<Py<QueueFull>> for &QueueFull` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<QueueFull>` [src]

### `impl IntoPy<Py<TimeoutError>> for &TimeoutError` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<TimeoutError>` [src]

### `impl IntoPy<Py<gaierror>> for &gaierror` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<gaierror>` [src]

### `impl IntoPy<Py<herror>> for &herror` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<herror>` [src]

### `impl IntoPy<Py<timeout>> for &timeout` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<timeout>` [src]

### `impl IntoPy<Py<PyArithmeticError>> for &PyArithmeticError` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyArithmeticError>` [src]

### `impl IntoPy<Py<PyAssertionError>> for &PyAssertionError` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyAssertionError>` [src]

### `impl IntoPy<Py<PyAttributeError>> for &PyAttributeError` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyAttributeError>` [src]

### `impl IntoPy<Py<PyBaseException>> for &PyBaseException` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyBaseException>` [src]

### `impl IntoPy<Py<PyBlockingIOError>> for &PyBlockingIOError` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyBlockingIOError>` [src]

### `impl IntoPy<Py<PyBrokenPipeError>> for &PyBrokenPipeError` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyBrokenPipeError>` [src]

### `impl IntoPy<Py<PyBufferError>> for &PyBufferError` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyBufferError>` [src]

### `impl IntoPy<Py<PyChildProcessError>> for &PyChildProcessError` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyChildProcessError>` [src]

### `impl IntoPy<Py<PyConnectionAbortedError>> for &PyConnectionAbortedError` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyConnectionAbortedError>` [src]

### `impl IntoPy<Py<PyConnectionError>> for &PyConnectionError` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyConnectionError>` [src]

### `impl IntoPy<Py<PyConnectionRefusedError>> for &PyConnectionRefusedError` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyConnectionRefusedError>` [src]

### `impl IntoPy<Py<PyConnectionResetError>> for &PyConnectionResetError` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyConnectionResetError>` [src]

### `impl IntoPy<Py<PyEOFError>> for &PyEOFError` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyEOFError>` [src]

### `impl IntoPy<Py<PyEnvironmentError>> for &PyEnvironmentError` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyEnvironmentError>` [src]

### `impl IntoPy<Py<PyException>> for &PyException` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyException>` [src]

### `impl IntoPy<Py<PyFileExistsError>> for &PyFileExistsError` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyFileExistsError>` [src]

### `impl IntoPy<Py<PyFileNotFoundError>> for &PyFileNotFoundError` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyFileNotFoundError>` [src]

### `impl IntoPy<Py<PyFloatingPointError>> for &PyFloatingPointError` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyFloatingPointError>` [src]

### `impl IntoPy<Py<PyGeneratorExit>> for &PyGeneratorExit` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyGeneratorExit>` [src]

### `impl IntoPy<Py<PyIOError>> for &PyIOError` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyIOError>` [src]

### `impl IntoPy<Py<PyImportError>> for &PyImportError` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyImportError>` [src]

### `impl IntoPy<Py<PyIndexError>> for &PyIndexError` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyIndexError>` [src]

### `impl IntoPy<Py<PyInterruptedError>> for &PyInterruptedError` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyInterruptedError>` [src]

### `impl IntoPy<Py<PyIsADirectoryError>> for &PyIsADirectoryError` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyIsADirectoryError>` [src]

### `impl IntoPy<Py<PyKeyError>> for &PyKeyError` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyKeyError>` [src]

### `impl IntoPy<Py<PyKeyboardInterrupt>> for &PyKeyboardInterrupt` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyKeyboardInterrupt>` [src]

### `impl IntoPy<Py<PyLookupError>> for &PyLookupError` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyLookupError>` [src]

### `impl IntoPy<Py<PyMemoryError>> for &PyMemoryError` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyMemoryError>` [src]

### `impl IntoPy<Py<PyModuleNotFoundError>> for &PyModuleNotFoundError` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyModuleNotFoundError>` [src]

### `impl IntoPy<Py<PyNameError>> for &PyNameError` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyNameError>` [src]

### `impl IntoPy<Py<PyNotADirectoryError>> for &PyNotADirectoryError` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyNotADirectoryError>` [src]

### `impl IntoPy<Py<PyNotImplementedError>> for &PyNotImplementedError` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyNotImplementedError>` [src]

### `impl IntoPy<Py<PyOSError>> for &PyOSError` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyOSError>` [src]

### `impl IntoPy<Py<PyOverflowError>> for &PyOverflowError` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyOverflowError>` [src]

### `impl IntoPy<Py<PyPermissionError>> for &PyPermissionError` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyPermissionError>` [src]

### `impl IntoPy<Py<PyProcessLookupError>> for &PyProcessLookupError` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyProcessLookupError>` [src]

### `impl IntoPy<Py<PyRecursionError>> for &PyRecursionError` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyRecursionError>` [src]

### `impl IntoPy<Py<PyReferenceError>> for &PyReferenceError` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyReferenceError>` [src]

### `impl IntoPy<Py<PyRuntimeError>> for &PyRuntimeError` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyRuntimeError>` [src]

### `impl IntoPy<Py<PyStopAsyncIteration>> for &PyStopAsyncIteration` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyStopAsyncIteration>` [src]

### `impl IntoPy<Py<PyStopIteration>> for &PyStopIteration` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyStopIteration>` [src]

### `impl IntoPy<Py<PySyntaxError>> for &PySyntaxError` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PySyntaxError>` [src]

### `impl IntoPy<Py<PySystemError>> for &PySystemError` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PySystemError>` [src]

### `impl IntoPy<Py<PySystemExit>> for &PySystemExit` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PySystemExit>` [src]

### `impl IntoPy<Py<PyTimeoutError>> for &PyTimeoutError` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyTimeoutError>` [src]

### `impl IntoPy<Py<PyTypeError>> for &PyTypeError` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyTypeError>` [src]

### `impl IntoPy<Py<PyUnboundLocalError>> for &PyUnboundLocalError` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyUnboundLocalError>` [src]

### `impl IntoPy<Py<PyUnicodeDecodeError>> for &PyUnicodeDecodeError` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyUnicodeDecodeError>` [src]

### `impl IntoPy<Py<PyUnicodeEncodeError>> for &PyUnicodeEncodeError` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyUnicodeEncodeError>` [src]

### `impl IntoPy<Py<PyUnicodeError>> for &PyUnicodeError` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyUnicodeError>` [src]

### `impl IntoPy<Py<PyUnicodeTranslateError>> for &PyUnicodeTranslateError` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyUnicodeTranslateError>` [src]

### `impl IntoPy<Py<PyValueError>> for &PyValueError` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyValueError>` [src]

### `impl IntoPy<Py<PyZeroDivisionError>> for &PyZeroDivisionError` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyZeroDivisionError>` [src]

### `impl IntoPy<Py<PanicException>> for &PanicException` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PanicException>` [src]

### `impl IntoPy<Py<PyAny>> for PyErr` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl IntoPy<Py<PyModule>> for &PyModule` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyModule>` [src]

### `impl IntoPy<Py<PyBool>> for &PyBool` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyBool>` [src]

### `impl IntoPy<Py<PyByteArray>> for &PyByteArray` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyByteArray>` [src]

### `impl IntoPy<Py<PyBytes>> for &PyBytes` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyBytes>` [src]

### `impl IntoPy<Py<PyCFunction>> for &PyCFunction` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyCFunction>` [src]

### `impl IntoPy<Py<PyComplex>> for &PyComplex` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyComplex>` [src]

### `impl IntoPy<Py<PyDate>> for &PyDate` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyDate>` [src]

### `impl IntoPy<Py<PyDateTime>> for &PyDateTime` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyDateTime>` [src]

### `impl IntoPy<Py<PyDelta>> for &PyDelta` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyDelta>` [src]

### `impl IntoPy<Py<PyDict>> for &PyDict` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyDict>` [src]

### `impl IntoPy<Py<PyFloat>> for &PyFloat` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyFloat>` [src]

### `impl IntoPy<Py<PyFrozenSet>> for &PyFrozenSet` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyFrozenSet>` [src]

### `impl IntoPy<Py<PyFunction>> for &PyFunction` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyFunction>` [src]

### `impl IntoPy<Py<PyIterator>> for &PyIterator` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyIterator>` [src]

### `impl IntoPy<Py<PyList>> for &PyList` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyList>` [src]

### `impl IntoPy<Py<PyLong>> for &PyLong` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyLong>` [src]

### `impl IntoPy<Py<PySequence>> for &PySequence` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PySequence>` [src]

### `impl IntoPy<Py<PySet>> for &PySet` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PySet>` [src]

### `impl IntoPy<Py<PySlice>> for &PySlice` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PySlice>` [src]

### `impl IntoPy<Py<PyString>> for &PyString` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyString>` [src]

### `impl IntoPy<Py<PyTime>> for &PyTime` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyTime>` [src]

### `impl IntoPy<Py<PyTuple>> for &PyTuple` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyTuple>` [src]

### `impl IntoPy<Py<PyType>> for &PyType` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyType>` [src]

### `impl IntoPy<Py<PyTzInfo>> for &PyTzInfo` [src]

#### `fn into_py(self, py: Python<'_>) -> Py<PyTzInfo>` [src]

### `impl<'a> IntoPy<Py<PyAny>> for &'a PyErr` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl<T> IntoPy<Py<PyAny>> for Py<T>` [src]

#### `fn into_py(self, _py: Python<'_>) -> PyObject` [src]

Converts a `Py` instance to `PyObject`. Consumes `self` without calling `Py_DECREF()`.

### `impl<T: PyClass> IntoPy<Py<PyAny>> for PyRef<'_, T>` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

### `impl<T: PyClass> IntoPy<Py<PyAny>> for PyRefMut<'_, T>` [src]

#### `fn into_py(self, py: Python<'_>) -> PyObject` [src]

Loading content...