# pyo3::conversion::FromPyObject - Rust
`FromPyObject` is implemented by various types that can be extracted from a Python object reference.
Keywords: rust, rustlang, rust-lang, FromPyObject

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

    pub trait FromPyObject<'source>: Sized {
        fn extract(ob: &'source PyAny) -> PyResult<Self>;
    }

`FromPyObject` is implemented by various types that can be extracted from a Python object reference.

Normal usage is through the helper methods `Py::extract` or `PyAny::extract`:

ⓘ

    let obj: Py<PyAny> = ...;
    let value: &TargetType = obj.extract(py)?;

    let any: &PyAny = ...;
    let value: &TargetType = any.extract()?;

Note: depending on the implementation, the lifetime of the extracted result may depend on the lifetime of the `obj` or the `prepared` variable.

For example, when extracting `&str` from a Python byte string, the resulting string slice will point to the existing string data (lifetime: `'source`). On the other hand, when extracting `&str` from a Python Unicode string, the preparation step will convert the string to UTF-8, and the resulting string slice will have lifetime `'prepared`. Since which case applies depends on the runtime type of the Python object, both the `obj` and `prepared` variables must outlive the resulting string slice.

The trait’s conversion method takes a `&PyAny` argument but is called `FromPyObject` for historical reasons.

## Required methods

### `fn extract(ob: &'source PyAny) -> PyResult<Self>` [src]

Extracts `Self` from the source `PyObject`.

Loading content...

## Implementations on Foreign Types

### `impl<'a, T> FromPyObject<'a> for Option<T> where
T: FromPyObject<'a>,` [src]

#### `fn extract(obj: &'a PyAny) -> PyResult<Self>` [src]

### `impl<'source> FromPyObject<'source> for bool` [src]

Converts a Python `bool` to a Rust `bool`.

Fails with `TypeError` if the input is not a Python `bool`.

#### `fn extract(obj: &'source PyAny) -> PyResult<Self>` [src]

### `impl<'a> FromPyObject<'a> for &'a [u8]` [src]

#### `fn extract(obj: &'a PyAny) -> PyResult<Self>` [src]

### `impl<'source, K, V, S> FromPyObject<'source> for HashMap<K, V, S> where
K: FromPyObject<'source> + Eq + Hash,
V: FromPyObject<'source>,
S: BuildHasher + Default,` [src]

#### `fn extract(ob: &'source PyAny) -> Result<Self, PyErr>` [src]

### `impl<'source, K, V> FromPyObject<'source> for BTreeMap<K, V> where
K: FromPyObject<'source> + Ord,
V: FromPyObject<'source>,` [src]

#### `fn extract(ob: &'source PyAny) -> Result<Self, PyErr>` [src]

### `impl<'source> FromPyObject<'source> for f64` [src]

#### `fn extract(obj: &'source PyAny) -> PyResult<Self>` [src]

### `impl<'source> FromPyObject<'source> for f32` [src]

#### `fn extract(obj: &'source PyAny) -> PyResult<Self>` [src]

### `impl<'source> FromPyObject<'source> for i8` [src]

#### `fn extract(obj: &'source PyAny) -> PyResult<Self>` [src]

### `impl<'source> FromPyObject<'source> for u8` [src]

#### `fn extract(obj: &'source PyAny) -> PyResult<Self>` [src]

### `impl<'source> FromPyObject<'source> for i16` [src]

#### `fn extract(obj: &'source PyAny) -> PyResult<Self>` [src]

### `impl<'source> FromPyObject<'source> for u16` [src]

#### `fn extract(obj: &'source PyAny) -> PyResult<Self>` [src]

### `impl<'source> FromPyObject<'source> for i32` [src]

#### `fn extract(obj: &'source PyAny) -> PyResult<Self>` [src]

### `impl<'source> FromPyObject<'source> for u32` [src]

#### `fn extract(obj: &'source PyAny) -> PyResult<Self>` [src]

### `impl<'source> FromPyObject<'source> for i64` [src]

#### `fn extract(obj: &'source PyAny) -> PyResult<Self>` [src]

### `impl<'source> FromPyObject<'source> for isize` [src]

#### `fn extract(obj: &'source PyAny) -> PyResult<Self>` [src]

### `impl<'source> FromPyObject<'source> for usize` [src]

#### `fn extract(obj: &'source PyAny) -> PyResult<Self>` [src]

### `impl<'source> FromPyObject<'source> for u64` [src]

#### `fn extract(ob: &'source PyAny) -> PyResult<u64>` [src]

### `impl<'source> FromPyObject<'source> for i128` [src]

#### `fn extract(ob: &'source PyAny) -> PyResult<i128>` [src]

### `impl<'source> FromPyObject<'source> for u128` [src]

#### `fn extract(ob: &'source PyAny) -> PyResult<u128>` [src]

### `impl<'a, T> FromPyObject<'a> for [T; 0] where
T: Copy + Default + FromPyObject<'a>,` [src]

#### `fn extract(obj: &'a PyAny) -> PyResult<Self>` [src]

### `impl<'a, T> FromPyObject<'a> for [T; 1] where
T: Copy + Default + FromPyObject<'a>,` [src]

#### `fn extract(obj: &'a PyAny) -> PyResult<Self>` [src]

### `impl<'a, T> FromPyObject<'a> for [T; 2] where
T: Copy + Default + FromPyObject<'a>,` [src]

#### `fn extract(obj: &'a PyAny) -> PyResult<Self>` [src]

### `impl<'a, T> FromPyObject<'a> for [T; 3] where
T: Copy + Default + FromPyObject<'a>,` [src]

#### `fn extract(obj: &'a PyAny) -> PyResult<Self>` [src]

### `impl<'a, T> FromPyObject<'a> for [T; 4] where
T: Copy + Default + FromPyObject<'a>,` [src]

#### `fn extract(obj: &'a PyAny) -> PyResult<Self>` [src]

### `impl<'a, T> FromPyObject<'a> for [T; 5] where
T: Copy + Default + FromPyObject<'a>,` [src]

#### `fn extract(obj: &'a PyAny) -> PyResult<Self>` [src]

### `impl<'a, T> FromPyObject<'a> for [T; 6] where
T: Copy + Default + FromPyObject<'a>,` [src]

#### `fn extract(obj: &'a PyAny) -> PyResult<Self>` [src]

### `impl<'a, T> FromPyObject<'a> for [T; 7] where
T: Copy + Default + FromPyObject<'a>,` [src]

#### `fn extract(obj: &'a PyAny) -> PyResult<Self>` [src]

### `impl<'a, T> FromPyObject<'a> for [T; 8] where
T: Copy + Default + FromPyObject<'a>,` [src]

#### `fn extract(obj: &'a PyAny) -> PyResult<Self>` [src]

### `impl<'a, T> FromPyObject<'a> for [T; 9] where
T: Copy + Default + FromPyObject<'a>,` [src]

#### `fn extract(obj: &'a PyAny) -> PyResult<Self>` [src]

### `impl<'a, T> FromPyObject<'a> for [T; 10] where
T: Copy + Default + FromPyObject<'a>,` [src]

#### `fn extract(obj: &'a PyAny) -> PyResult<Self>` [src]

### `impl<'a, T> FromPyObject<'a> for [T; 11] where
T: Copy + Default + FromPyObject<'a>,` [src]

#### `fn extract(obj: &'a PyAny) -> PyResult<Self>` [src]

### `impl<'a, T> FromPyObject<'a> for [T; 12] where
T: Copy + Default + FromPyObject<'a>,` [src]

#### `fn extract(obj: &'a PyAny) -> PyResult<Self>` [src]

### `impl<'a, T> FromPyObject<'a> for [T; 13] where
T: Copy + Default + FromPyObject<'a>,` [src]

#### `fn extract(obj: &'a PyAny) -> PyResult<Self>` [src]

### `impl<'a, T> FromPyObject<'a> for [T; 14] where
T: Copy + Default + FromPyObject<'a>,` [src]

#### `fn extract(obj: &'a PyAny) -> PyResult<Self>` [src]

### `impl<'a, T> FromPyObject<'a> for [T; 15] where
T: Copy + Default + FromPyObject<'a>,` [src]

#### `fn extract(obj: &'a PyAny) -> PyResult<Self>` [src]

### `impl<'a, T> FromPyObject<'a> for [T; 16] where
T: Copy + Default + FromPyObject<'a>,` [src]

#### `fn extract(obj: &'a PyAny) -> PyResult<Self>` [src]

### `impl<'a, T> FromPyObject<'a> for [T; 17] where
T: Copy + Default + FromPyObject<'a>,` [src]

#### `fn extract(obj: &'a PyAny) -> PyResult<Self>` [src]

### `impl<'a, T> FromPyObject<'a> for [T; 18] where
T: Copy + Default + FromPyObject<'a>,` [src]

#### `fn extract(obj: &'a PyAny) -> PyResult<Self>` [src]

### `impl<'a, T> FromPyObject<'a> for [T; 19] where
T: Copy + Default + FromPyObject<'a>,` [src]

#### `fn extract(obj: &'a PyAny) -> PyResult<Self>` [src]

### `impl<'a, T> FromPyObject<'a> for [T; 20] where
T: Copy + Default + FromPyObject<'a>,` [src]

#### `fn extract(obj: &'a PyAny) -> PyResult<Self>` [src]

### `impl<'a, T> FromPyObject<'a> for [T; 21] where
T: Copy + Default + FromPyObject<'a>,` [src]

#### `fn extract(obj: &'a PyAny) -> PyResult<Self>` [src]

### `impl<'a, T> FromPyObject<'a> for [T; 22] where
T: Copy + Default + FromPyObject<'a>,` [src]

#### `fn extract(obj: &'a PyAny) -> PyResult<Self>` [src]

### `impl<'a, T> FromPyObject<'a> for [T; 23] where
T: Copy + Default + FromPyObject<'a>,` [src]

#### `fn extract(obj: &'a PyAny) -> PyResult<Self>` [src]

### `impl<'a, T> FromPyObject<'a> for [T; 24] where
T: Copy + Default + FromPyObject<'a>,` [src]

#### `fn extract(obj: &'a PyAny) -> PyResult<Self>` [src]

### `impl<'a, T> FromPyObject<'a> for [T; 25] where
T: Copy + Default + FromPyObject<'a>,` [src]

#### `fn extract(obj: &'a PyAny) -> PyResult<Self>` [src]

### `impl<'a, T> FromPyObject<'a> for [T; 26] where
T: Copy + Default + FromPyObject<'a>,` [src]

#### `fn extract(obj: &'a PyAny) -> PyResult<Self>` [src]

### `impl<'a, T> FromPyObject<'a> for [T; 27] where
T: Copy + Default + FromPyObject<'a>,` [src]

#### `fn extract(obj: &'a PyAny) -> PyResult<Self>` [src]

### `impl<'a, T> FromPyObject<'a> for [T; 28] where
T: Copy + Default + FromPyObject<'a>,` [src]

#### `fn extract(obj: &'a PyAny) -> PyResult<Self>` [src]

### `impl<'a, T> FromPyObject<'a> for [T; 29] where
T: Copy + Default + FromPyObject<'a>,` [src]

#### `fn extract(obj: &'a PyAny) -> PyResult<Self>` [src]

### `impl<'a, T> FromPyObject<'a> for [T; 30] where
T: Copy + Default + FromPyObject<'a>,` [src]

#### `fn extract(obj: &'a PyAny) -> PyResult<Self>` [src]

### `impl<'a, T> FromPyObject<'a> for [T; 31] where
T: Copy + Default + FromPyObject<'a>,` [src]

#### `fn extract(obj: &'a PyAny) -> PyResult<Self>` [src]

### `impl<'a, T> FromPyObject<'a> for [T; 32] where
T: Copy + Default + FromPyObject<'a>,` [src]

#### `fn extract(obj: &'a PyAny) -> PyResult<Self>` [src]

### `impl<'a, T> FromPyObject<'a> for Vec<T> where
T: FromPyObject<'a>,` [src]

#### `fn extract(obj: &'a PyAny) -> PyResult<Self>` [src]

### `impl<'source, K, S> FromPyObject<'source> for HashSet<K, S> where
K: FromPyObject<'source> + Eq + Hash,
S: BuildHasher + Default,` [src]

#### `fn extract(ob: &'source PyAny) -> PyResult<Self>` [src]

### `impl<'source, K> FromPyObject<'source> for BTreeSet<K> where
K: FromPyObject<'source> + Ord,` [src]

#### `fn extract(ob: &'source PyAny) -> PyResult<Self>` [src]

### `impl<'source> FromPyObject<'source> for &'source str` [src]

Allows extracting strings from Python objects. Accepts Python `str` and `unicode` objects.

#### `fn extract(ob: &'source PyAny) -> PyResult<Self>` [src]

### `impl FromPyObject<'_> for String` [src]

Allows extracting strings from Python objects. Accepts Python `str` and `unicode` objects.

#### `fn extract(obj: &PyAny) -> PyResult<Self>` [src]

### `impl FromPyObject<'_> for char` [src]

#### `fn extract(obj: &PyAny) -> PyResult<Self>` [src]

### `impl<'s, A: FromPyObject<'s>> FromPyObject<'s> for (A,)` [src]

#### `fn extract(obj: &'s PyAny) -> PyResult<Self>` [src]

### `impl<'s, A: FromPyObject<'s>, B: FromPyObject<'s>> FromPyObject<'s> for (A, B)` [src]

#### `fn extract(obj: &'s PyAny) -> PyResult<Self>` [src]

### `impl<'s, A: FromPyObject<'s>, B: FromPyObject<'s>, C: FromPyObject<'s>> FromPyObject<'s> for (A, B, C)` [src]

#### `fn extract(obj: &'s PyAny) -> PyResult<Self>` [src]

### `impl<'s, A: FromPyObject<'s>, B: FromPyObject<'s>, C: FromPyObject<'s>, D: FromPyObject<'s>> FromPyObject<'s> for (A, B, C, D)` [src]

#### `fn extract(obj: &'s PyAny) -> PyResult<Self>` [src]

### `impl<'s, A: FromPyObject<'s>, B: FromPyObject<'s>, C: FromPyObject<'s>, D: FromPyObject<'s>, E: FromPyObject<'s>> FromPyObject<'s> for (A, B, C, D, E)` [src]

#### `fn extract(obj: &'s PyAny) -> PyResult<Self>` [src]

### `impl<'s, A: FromPyObject<'s>, B: FromPyObject<'s>, C: FromPyObject<'s>, D: FromPyObject<'s>, E: FromPyObject<'s>, F: FromPyObject<'s>> FromPyObject<'s> for (A, B, C, D, E, F)` [src]

#### `fn extract(obj: &'s PyAny) -> PyResult<Self>` [src]

### `impl<'s, A: FromPyObject<'s>, B: FromPyObject<'s>, C: FromPyObject<'s>, D: FromPyObject<'s>, E: FromPyObject<'s>, F: FromPyObject<'s>, G: FromPyObject<'s>> FromPyObject<'s> for (A, B, C, D, E, F, G)` [src]

#### `fn extract(obj: &'s PyAny) -> PyResult<Self>` [src]

### `impl<'s, A: FromPyObject<'s>, B: FromPyObject<'s>, C: FromPyObject<'s>, D: FromPyObject<'s>, E: FromPyObject<'s>, F: FromPyObject<'s>, G: FromPyObject<'s>, H: FromPyObject<'s>> FromPyObject<'s> for (A, B, C, D, E, F, G, H)` [src]

#### `fn extract(obj: &'s PyAny) -> PyResult<Self>` [src]

### `impl<'s, A: FromPyObject<'s>, B: FromPyObject<'s>, C: FromPyObject<'s>, D: FromPyObject<'s>, E: FromPyObject<'s>, F: FromPyObject<'s>, G: FromPyObject<'s>, H: FromPyObject<'s>, I: FromPyObject<'s>> FromPyObject<'s> for (A, B, C, D, E, F, G, H, I)` [src]

#### `fn extract(obj: &'s PyAny) -> PyResult<Self>` [src]

Loading content...

## Implementors

### `impl<'a, T> FromPyObject<'a> for &'a PyCell<T> where
T: PyClass,` [src]

#### `fn extract(obj: &'a PyAny) -> PyResult<Self>` [src]

### `impl<'a, T> FromPyObject<'a> for Py<T> where
T: PyTypeInfo,
&'a T::AsRefTarget: FromPyObject<'a>,
T::AsRefTarget: 'a + AsPyPointer,` [src]

#### `fn extract(ob: &'a PyAny) -> PyResult<Self>` [src]

Extracts `Self` from the source `PyObject`.

### `impl<'a, T> FromPyObject<'a> for PyRef<'a, T> where
T: PyClass,` [src]

#### `fn extract(obj: &'a PyAny) -> PyResult<Self>` [src]

### `impl<'a, T> FromPyObject<'a> for PyRefMut<'a, T> where
T: PyClass,` [src]

#### `fn extract(obj: &'a PyAny) -> PyResult<Self>` [src]

### `impl<'a, T> FromPyObject<'a> for T where
T: PyClass + Clone,` [src]

#### `fn extract(obj: &'a PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py CancelledError` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py IncompleteReadError` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py InvalidStateError` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py LimitOverrunError` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py QueueEmpty` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py QueueFull` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py TimeoutError` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py gaierror` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py herror` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py timeout` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyArithmeticError` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyAssertionError` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyAttributeError` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyBaseException` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyBlockingIOError` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyBrokenPipeError` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyBufferError` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyChildProcessError` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyConnectionAbortedError` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyConnectionError` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyConnectionRefusedError` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyConnectionResetError` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyEOFError` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyEnvironmentError` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyException` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyFileExistsError` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyFileNotFoundError` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyFloatingPointError` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyGeneratorExit` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyIOError` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyImportError` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyIndexError` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyInterruptedError` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyIsADirectoryError` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyKeyError` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyKeyboardInterrupt` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyLookupError` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyMemoryError` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyModuleNotFoundError` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyNameError` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyNotADirectoryError` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyNotImplementedError` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyOSError` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyOverflowError` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyPermissionError` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyProcessLookupError` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyRecursionError` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyReferenceError` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyRuntimeError` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyStopAsyncIteration` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyStopIteration` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PySyntaxError` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PySystemError` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PySystemExit` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyTimeoutError` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyTypeError` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyUnboundLocalError` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyUnicodeDecodeError` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyUnicodeEncodeError` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyUnicodeError` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyUnicodeTranslateError` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyValueError` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyZeroDivisionError` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PanicException` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyAny` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyModule` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyBool` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyByteArray` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyBytes` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyCFunction` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyComplex` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyDate` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyDateTime` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyDelta` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyDict` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyFloat` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyFrozenSet` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyFunction` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyIterator` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyList` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyLong` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PySequence` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PySet` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PySlice` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyString` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyTime` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyTuple` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyType` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'py> FromPyObject<'py> for &'py PyTzInfo` [src]

#### `fn extract(obj: &'py PyAny) -> PyResult<Self>` [src]

### `impl<'source, T: Element> FromPyObject<'source> for PyBuffer<T>` [src]

#### `fn extract(obj: &PyAny) -> PyResult<PyBuffer<T>>` [src]

Loading content...