341 lines
321 KiB
HTML
341 lines
321 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A Python object with GIL lifetime"><meta name="keywords" content="rust, rustlang, rust-lang, PyAny"><title>PyAny in pyo3::prelude - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc struct"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../pyo3/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class="location">Struct PyAny</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#implementations">Methods</a><div class="sidebar-links"><a href="#method.call">call</a><a href="#method.call0">call0</a><a href="#method.call1">call1</a><a href="#method.call_method">call_method</a><a href="#method.call_method0">call_method0</a><a href="#method.call_method1">call_method1</a><a href="#method.cast_as">cast_as</a><a href="#method.compare">compare</a><a href="#method.del_item">del_item</a><a href="#method.delattr">delattr</a><a href="#method.dir">dir</a><a href="#method.downcast">downcast</a><a href="#method.extract">extract</a><a href="#method.get_item">get_item</a><a href="#method.get_refcnt">get_refcnt</a><a href="#method.get_type">get_type</a><a href="#method.get_type_ptr">get_type_ptr</a><a href="#method.getattr">getattr</a><a href="#method.hasattr">hasattr</a><a href="#method.hash">hash</a><a href="#method.is_callable">is_callable</a><a href="#method.is_empty">is_empty</a><a href="#method.is_instance">is_instance</a><a href="#method.is_none">is_none</a><a href="#method.is_true">is_true</a><a href="#method.iter">iter</a><a href="#method.len">len</a><a href="#method.repr">repr</a><a href="#method.rich_compare">rich_compare</a><a href="#method.set_item">set_item</a><a href="#method.setattr">setattr</a><a href="#method.str">str</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-AsPyPointer">AsPyPointer</a><a href="#impl-AsRef%3CPyAny%3E">AsRef<PyAny></a><a href="#impl-Debug">Debug</a><a href="#impl-Display">Display</a><a href="#impl-From%3C%26%27a%20CancelledError%3E">From<&'a CancelledError></a><a href="#impl-From%3C%26%27a%20IncompleteReadError%3E">From<&'a IncompleteReadError></a><a href="#impl-From%3C%26%27a%20InvalidStateError%3E">From<&'a InvalidStateError></a><a href="#impl-From%3C%26%27a%20LimitOverrunError%3E">From<&'a LimitOverrunError></a><a href="#impl-From%3C%26%27a%20PanicException%3E">From<&'a PanicException></a><a href="#impl-From%3C%26%27a%20PyArithmeticError%3E">From<&'a PyArithmeticError></a><a href="#impl-From%3C%26%27a%20PyAssertionError%3E">From<&'a PyAssertionError></a><a href="#impl-From%3C%26%27a%20PyAttributeError%3E">From<&'a PyAttributeError></a><a href="#impl-From%3C%26%27a%20PyBaseException%3E">From<&'a PyBaseException></a><a href="#impl-From%3C%26%27a%20PyBlockingIOError%3E">From<&'a PyBlockingIOError></a><a href="#impl-From%3C%26%27a%20PyBool%3E">From<&'a PyBool></a><a href="#impl-From%3C%26%27a%20PyBrokenPipeError%3E">From<&'a PyBrokenPipeError></a><a href="#impl-From%3C%26%27a%20PyBufferError%3E">From<&'a PyBufferError></a><a href="#impl-From%3C%26%27a%20PyByteArray%3E">From<&'a PyByteArray></a><a href="#impl-From%3C%26%27a%20PyBytes%3E">From<&'a PyBytes></a><a href="#impl-From%3C%26%27a%20PyCFunction%3E">From<&'a PyCFunction></a><a href="#impl-From%3C%26%27a%20PyChildProcessError%3E">From<&'a PyChildProcessError></a><a href="#impl-From%3C%26%27a%20PyComplex%3E">From<&'a PyComplex></a><a href="#impl-From%3C%26%27a%20PyConnectionAbortedError%3E">From<&'a PyConnectionAbortedError></a><a href="#impl-From%3C%26%27a%20PyConnectionError%3E">From<&'a PyConnectionError></a><a href="#impl-From%3C%26%27a%20PyConnectionRefusedError%3E">From<&'a PyConnectionRefusedError></a><a href="#impl-From%3C%26%27a%20PyConnectionResetError%3E">From<&'a PyConnectionResetError></a><a href="#impl-From%3C%26%27a%20PyDate%3E">From<&'a PyDate></a><a href="#impl-From%3C%26%27a%20PyDateTime%3E">From<&'a PyDateTime></a><a href="#impl-From%3C%26%27a%20PyDelta%3E">From<&'a PyDelta></a><a href="#impl-From%3C%26%27a%20PyDict%3E">From<&'a PyDict></a><a href="#impl-From%3C%26%27a%20PyEOFError%3E">From<&'a PyEOFError></a><a href="#impl-From%3C%26%27a%20PyEnvironmentError%3E">From<&'a PyEnvironmentError></a><a href="#impl-From%3C%26%27a%20PyException%3E">From<&'a PyException></a><a href="#impl-From%3C%26%27a%20PyFileExistsError%3E">From<&'a PyFileExistsError></a><a href="#impl-From%3C%26%27a%20PyFileNotFoundError%3E">From<&'a PyFileNotFoundError></a><a href="#impl-From%3C%26%27a%20PyFloat%3E">From<&'a PyFloat></a><a href="#impl-From%3C%26%27a%20PyFloatingPointError%3E">From<&'a PyFloatingPointError></a><a href="#impl-From%3C%26%27a%20PyFrozenSet%3E">From<&'a PyFrozenSet></a><a href="#impl-From%3C%26%27a%20PyFunction%3E">From<&'a PyFunction></a><a href="#impl-From%3C%26%27a%20PyGeneratorExit%3E">From<&'a PyGeneratorExit></a><a href="#impl-From%3C%26%27a%20PyIOError%3E">From<&'a PyIOError></a><a href="#impl-From%3C%26%27a%20PyImportError%3E">From<&'a PyImportError></a><a href="#impl-From%3C%26%27a%20PyIndexError%3E">From<&'a PyIndexError></a><a href="#impl-From%3C%26%27a%20PyInterruptedError%3E">From<&'a PyInterruptedError></a><a href="#impl-From%3C%26%27a%20PyIsADirectoryError%3E">From<&'a PyIsADirectoryError></a><a href="#impl-From%3C%26%27a%20PyIterator%3E">From<&'a PyIterator></a><a href="#impl-From%3C%26%27a%20PyKeyError%3E">From<&'a PyKeyError></a><a href="#impl-From%3C%26%27a%20PyKeyboardInterrupt%3E">From<&'a PyKeyboardInterrupt></a><a href="#impl-From%3C%26%27a%20PyList%3E">From<&'a PyList></a><a href="#impl-From%3C%26%27a%20PyLong%3E">From<&'a PyLong></a><a href="#impl-From%3C%26%27a%20PyLookupError%3E">From<&'a PyLookupError></a><a href="#impl-From%3C%26%27a%20PyMemoryError%3E">From<&'a PyMemoryError></a><a href="#impl-From%3C%26%27a%20PyModule%3E">From<&'a PyModule></a><a href="#impl-From%3C%26%27a%20PyModuleNotFoundError%3E">From<&'a PyModuleNotFoundError></a><a href="#impl-From%3C%26%27a%20PyNameError%3E">From<&'a PyNameError></a><a href="#impl-From%3C%26%27a%20PyNotADirectoryError%3E">From<&'a PyNotADirectoryError></a><a href="#impl-From%3C%26%27a%20PyNotImplementedError%3E">From<&'a PyNotImplementedError></a><a href="#impl-From%3C%26%27a%20PyOSError%3E">From<&'a PyOSError></a><a href="#impl-From%3C%26%27a%20PyOverflowError%3E">From<&'a PyOverflowError></a><a href="#impl-From%3C%26%27a%20PyPermissionError%3E">From<&'a PyPermissionError></a><a href="#impl-From%3C%26%27a%20PyProcessLookupError%3E">From<&'a PyProcessLookupError></a><a href="#impl-From%3C%26%27a%20PyRecursionError%3E">From<&'a PyRecursionError></a><a href="#impl-From%3C%26%27a%20PyReferenceError%3E">From<&'a PyReferenceError></a><a href="#impl-From%3C%26%27a%20PyRuntimeError%3E">From<&'a PyRuntimeError></a><a href="#impl-From%3C%26%27a%20PySequence%3E">From<&'a PySequence></a><a href="#impl-From%3C%26%27a%20PySet%3E">From<&'a PySet></a><a href="#impl-From%3C%26%27a%20PySlice%3E">From<&'a PySlice></a><a href="#impl-From%3C%26%27a%20PyStopAsyncIteration%3E">From<&'a PyStopAsyncIteration></a><a href="#impl-From%3C%26%27a%20PyStopIteration%3E">From<&'a PyStopIteration></a><a href="#impl-From%3C%26%27a%20PyString%3E">From<&'a PyString></a><a href="#impl-From%3C%26%27a%20PySyntaxError%3E">From<&'a PySyntaxError></a><a href="#impl-From%3C%26%27a%20PySystemError%3E">From<&'a PySystemError></a><a href="#impl-From%3C%26%27a%20PySystemExit%3E">From<&'a PySystemExit></a><a href="#impl-From%3C%26%27a%20PyTime%3E">From<&'a PyTime></a><a href="#impl-From%3C%26%27a%20PyTimeoutError%3E">From<&'a PyTimeoutError></a><a href="#impl-From%3C%26%27a%20PyTuple%3E">From<&'a PyTuple></a><a href="#impl-From%3C%26%27a%20PyType%3E">From<&'a PyType></a><a href="#impl-From%3C%26%27a%20PyTypeError%3E">From<&'a PyTypeError></a><a href="#impl-From%3C%26%27a%20PyTzInfo%3E">From<&'a PyTzInfo></a><a href="#impl-From%3C%26%27a%20PyUnboundLocalError%3E">From<&'a PyUnboundLocalError></a><a href="#impl-From%3C%26%27a%20PyUnicodeDecodeError%3E">From<&'a PyUnicodeDecodeError></a><a href="#impl-From%3C%26%27a%20PyUnicodeEncodeError%3E">From<&'a PyUnicodeEncodeError></a><a href="#impl-From%3C%26%27a%20PyUnicodeError%3E">From<&'a PyUnicodeError></a><a href="#impl-From%3C%26%27a%20PyUnicodeTranslateError%3E">From<&'a PyUnicodeTranslateError></a><a href="#impl-From%3C%26%27a%20PyValueError%3E">From<&'a PyValueError></a><a href="#impl-From%3C%26%27a%20PyZeroDivisionError%3E">From<&'a PyZeroDivisionError></a><a href="#impl-From%3C%26%27a%20QueueEmpty%3E">From<&'a QueueEmpty></a><a href="#impl-From%3C%26%27a%20QueueFull%3E">From<&'a QueueFull></a><a href="#impl-From%3C%26%27a%20TimeoutError%3E">From<&'a TimeoutError></a><a href="#impl-From%3C%26%27a%20gaierror%3E">From<&'a gaierror></a><a href="#impl-From%3C%26%27a%20herror%3E">From<&'a herror></a><a href="#impl-From%3C%26%27a%20timeout%3E">From<&'a timeout></a><a href="#impl-FromPyObject%3C%27py%3E">FromPyObject<'py></a><a href="#impl-PartialEq%3CPyAny%3E">PartialEq<PyAny></a><a href="#impl-PyLayout%3CPyAny%3E">PyLayout<PyAny></a><a href="#impl-PyNativeType">PyNativeType</a><a href="#impl-PySizedLayout%3CPyAny%3E">PySizedLayout<PyAny></a><a href="#impl-PyTryInto%3CU%3E">PyTryInto<U></a><a href="#impl-PyTypeInfo">PyTypeInfo</a><a href="#impl-ToPyObject">ToPyObject</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">!RefUnwindSafe</a><a href="#impl-Send">!Send</a><a href="#impl-Sync">!Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-FromPyPointer%3C%27p%3E">FromPyPointer<'p></a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-PyTryFrom%3C%27v%3E">PyTryFrom<'v></a><a href="#impl-PyTypeObject">PyTypeObject</a><a href="#impl-ToBorrowedObject">ToBorrowedObject</a><a href="#impl-ToString">ToString</a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a></div></div><p class="location"><a href="../index.html">pyo3</a>::<wbr><a href="index.html">prelude</a></p><div id="sidebar-vars" data-name="PyAny" data-ty="struct" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Struct <a href="../index.html">pyo3</a>::<wbr><a href="index.html">prelude</a>::<wbr><a class="struct" href="">PyAny</a><button id="copy-path" onclick="copy_path(this)">⎘</button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/pyo3/types/any.rs.html#39" title="goto source code">[src]</a></span></h1><div class="docblock type-decl"><pre class="rust struct"><div class="code-attribute">#[repr(transparent)]</div>pub struct PyAny(_);</pre></div><div class="docblock"><p>A Python object with GIL lifetime</p>
|
||
<p>Represents any Python object. All Python objects can be cast to <code>PyAny</code>.
|
||
In addition, if the inner object is an instance of type <code>T</code>, we can downcast
|
||
<code>PyAny</code> into <code>T</code>.</p>
|
||
<p><code>PyAny</code> is used as a reference with a lifetime that represents that the GIL
|
||
is held, therefore its API does not require a <code>Python<'py></code> token.</p>
|
||
<p>See <a href="https://pyo3.rs/master/types.html">the guide</a> for an explanation
|
||
of the different Python object types.</p>
|
||
<h1 id="example" class="section-header"><a href="#example">Example</a></h1>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered">
|
||
<span class="kw">use</span> <span class="ident">pyo3::prelude</span>::<span class="kw-2">*</span>;
|
||
<span class="kw">use</span> <span class="ident">pyo3::types</span>::{<span class="ident">PyAny</span>, <span class="ident">PyDict</span>, <span class="ident">PyList</span>};
|
||
<span class="kw">let</span> <span class="ident">gil</span> <span class="op">=</span> <span class="ident">Python::acquire_gil</span>();
|
||
<span class="kw">let</span> <span class="ident">dict</span> <span class="op">=</span> <span class="ident">PyDict::new</span>(<span class="ident">gil</span>.<span class="ident">python</span>());
|
||
<span class="macro">assert!</span>(<span class="ident">dict</span>.<span class="ident">is_instance</span>::<span class="op"><</span><span class="ident">PyAny</span><span class="op">></span>().<span class="ident">unwrap</span>());
|
||
<span class="kw">let</span> <span class="ident">any</span>: <span class="kw-2">&</span><span class="ident">PyAny</span> <span class="op">=</span> <span class="ident">dict</span>.<span class="ident">as_ref</span>();
|
||
<span class="macro">assert!</span>(<span class="ident">any</span>.<span class="ident">downcast</span>::<span class="op"><</span><span class="ident">PyDict</span><span class="op">></span>().<span class="ident">is_ok</span>());
|
||
<span class="macro">assert!</span>(<span class="ident">any</span>.<span class="ident">downcast</span>::<span class="op"><</span><span class="ident">PyList</span><span class="op">></span>().<span class="ident">is_err</span>());</pre></div>
|
||
</div><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl" class="impl"><code class="in-band">impl <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/any.rs.html#63-476" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.downcast" class="method"><code>pub fn <a href="#method.downcast" class="fnname">downcast</a><T>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T, <a class="struct" href="../struct.PyDowncastError.html" title="struct pyo3::PyDowncastError">PyDowncastError</a><'_>> <span class="where fmt-newline">where<br> T: <a class="trait" href="../conversion/trait.PyTryFrom.html" title="trait pyo3::conversion::PyTryFrom">PyTryFrom</a><'py>, </span></code><a href="#method.downcast" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/any.rs.html#65-70" title="goto source code">[src]</a></h4><div class="docblock"><p>Convert this PyAny to a concrete Python type.</p>
|
||
</div><h4 id="method.hasattr" class="method"><code>pub fn <a href="#method.hasattr" class="fnname">hasattr</a><N>(&self, attr_name: N) -> <a class="type" href="type.PyResult.html" title="type pyo3::prelude::PyResult">PyResult</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>> <span class="where fmt-newline">where<br> N: <a class="trait" href="../conversion/trait.ToPyObject.html" title="trait pyo3::conversion::ToPyObject">ToPyObject</a>, </span></code><a href="#method.hasattr" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/any.rs.html#75-82" title="goto source code">[src]</a></h4><div class="docblock"><p>Determines whether this object has the given attribute.</p>
|
||
<p>This is equivalent to the Python expression <code>hasattr(self, attr_name)</code>.</p>
|
||
</div><h4 id="method.getattr" class="method"><code>pub fn <a href="#method.getattr" class="fnname">getattr</a><N>(&self, attr_name: N) -> <a class="type" href="type.PyResult.html" title="type pyo3::prelude::PyResult">PyResult</a><&<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> <span class="where fmt-newline">where<br> N: <a class="trait" href="../conversion/trait.ToPyObject.html" title="trait pyo3::conversion::ToPyObject">ToPyObject</a>, </span></code><a href="#method.getattr" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/any.rs.html#87-95" title="goto source code">[src]</a></h4><div class="docblock"><p>Retrieves an attribute value.</p>
|
||
<p>This is equivalent to the Python expression <code>self.attr_name</code>.</p>
|
||
</div><h4 id="method.setattr" class="method"><code>pub fn <a href="#method.setattr" class="fnname">setattr</a><N, V>(&self, attr_name: N, value: V) -> <a class="type" href="type.PyResult.html" title="type pyo3::prelude::PyResult">PyResult</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>> <span class="where fmt-newline">where<br> N: <a class="trait" href="../conversion/trait.ToBorrowedObject.html" title="trait pyo3::conversion::ToBorrowedObject">ToBorrowedObject</a>,<br> V: <a class="trait" href="../conversion/trait.ToBorrowedObject.html" title="trait pyo3::conversion::ToBorrowedObject">ToBorrowedObject</a>, </span></code><a href="#method.setattr" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/any.rs.html#100-113" title="goto source code">[src]</a></h4><div class="docblock"><p>Sets an attribute value.</p>
|
||
<p>This is equivalent to the Python expression <code>self.attr_name = value</code>.</p>
|
||
</div><h4 id="method.delattr" class="method"><code>pub fn <a href="#method.delattr" class="fnname">delattr</a><N>(&self, attr_name: N) -> <a class="type" href="type.PyResult.html" title="type pyo3::prelude::PyResult">PyResult</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>> <span class="where fmt-newline">where<br> N: <a class="trait" href="../conversion/trait.ToPyObject.html" title="trait pyo3::conversion::ToPyObject">ToPyObject</a>, </span></code><a href="#method.delattr" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/any.rs.html#118-125" title="goto source code">[src]</a></h4><div class="docblock"><p>Deletes an attribute.</p>
|
||
<p>This is equivalent to the Python expression <code>del self.attr_name</code>.</p>
|
||
</div><h4 id="method.compare" class="method"><code>pub fn <a href="#method.compare" class="fnname">compare</a><O>(&self, other: O) -> <a class="type" href="type.PyResult.html" title="type pyo3::prelude::PyResult">PyResult</a><<a class="enum" href="https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a>> <span class="where fmt-newline">where<br> O: <a class="trait" href="../conversion/trait.ToPyObject.html" title="trait pyo3::conversion::ToPyObject">ToPyObject</a>, </span></code><a href="#method.compare" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/any.rs.html#140-164" title="goto source code">[src]</a></h4><div class="docblock"><p>Compares two Python objects.</p>
|
||
<p>This is equivalent to:</p>
|
||
<pre><code class="language-python">if self == other:
|
||
return Equal
|
||
elif a < b:
|
||
return Less
|
||
elif a > b:
|
||
return Greater
|
||
else:
|
||
raise TypeError("PyAny::compare(): All comparisons returned false")
|
||
</code></pre>
|
||
</div><h4 id="method.rich_compare" class="method"><code>pub fn <a href="#method.rich_compare" class="fnname">rich_compare</a><O>(<br> &self, <br> other: O, <br> compare_op: <a class="enum" href="../class/basic/enum.CompareOp.html" title="enum pyo3::class::basic::CompareOp">CompareOp</a><br>) -> <a class="type" href="type.PyResult.html" title="type pyo3::prelude::PyResult">PyResult</a><&<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> <span class="where fmt-newline">where<br> O: <a class="trait" href="../conversion/trait.ToPyObject.html" title="trait pyo3::conversion::ToPyObject">ToPyObject</a>, </span></code><a href="#method.rich_compare" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/any.rs.html#176-189" title="goto source code">[src]</a></h4><div class="docblock"><p>Compares two Python objects.</p>
|
||
<p>Depending on the value of <code>compare_op</code>, this is equivalent to one of the
|
||
following Python expressions:</p>
|
||
<ul>
|
||
<li>CompareOp::Eq: <code>self == other</code></li>
|
||
<li>CompareOp::Ne: <code>self != other</code></li>
|
||
<li>CompareOp::Lt: <code>self < other</code></li>
|
||
<li>CompareOp::Le: <code>self <= other</code></li>
|
||
<li>CompareOp::Gt: <code>self > other</code></li>
|
||
<li>CompareOp::Ge: <code>self >= other</code></li>
|
||
</ul>
|
||
</div><h4 id="method.is_callable" class="method"><code>pub fn <a href="#method.is_callable" class="fnname">is_callable</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a href="#method.is_callable" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/any.rs.html#192-194" title="goto source code">[src]</a></h4><div class="docblock"><p>Determines whether this object is callable.</p>
|
||
</div><h4 id="method.call" class="method"><code>pub fn <a href="#method.call" class="fnname">call</a>(<br> &self, <br> args: impl <a class="trait" href="../conversion/trait.IntoPy.html" title="trait pyo3::conversion::IntoPy">IntoPy</a><<a class="struct" href="struct.Py.html" title="struct pyo3::prelude::Py">Py</a><<a class="struct" href="../types/struct.PyTuple.html" title="struct pyo3::types::PyTuple">PyTuple</a>>>, <br> kwargs: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="struct" href="../types/struct.PyDict.html" title="struct pyo3::types::PyDict">PyDict</a>><br>) -> <a class="type" href="type.PyResult.html" title="type pyo3::prelude::PyResult">PyResult</a><&<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>></code><a href="#method.call" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/any.rs.html#199-215" title="goto source code">[src]</a></h4><div class="docblock"><p>Calls the object.</p>
|
||
<p>This is equivalent to the Python expression <code>self(*args, **kwargs)</code>.</p>
|
||
</div><h4 id="method.call0" class="method"><code>pub fn <a href="#method.call0" class="fnname">call0</a>(&self) -> <a class="type" href="type.PyResult.html" title="type pyo3::prelude::PyResult">PyResult</a><&<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>></code><a href="#method.call0" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/any.rs.html#220-233" title="goto source code">[src]</a></h4><div class="docblock"><p>Calls the object without arguments.</p>
|
||
<p>This is equivalent to the Python expression <code>self()</code>.</p>
|
||
</div><h4 id="method.call1" class="method"><code>pub fn <a href="#method.call1" class="fnname">call1</a>(&self, args: impl <a class="trait" href="../conversion/trait.IntoPy.html" title="trait pyo3::conversion::IntoPy">IntoPy</a><<a class="struct" href="struct.Py.html" title="struct pyo3::prelude::Py">Py</a><<a class="struct" href="../types/struct.PyTuple.html" title="struct pyo3::types::PyTuple">PyTuple</a>>>) -> <a class="type" href="type.PyResult.html" title="type pyo3::prelude::PyResult">PyResult</a><&<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>></code><a href="#method.call1" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/any.rs.html#238-240" title="goto source code">[src]</a></h4><div class="docblock"><p>Calls the object with only positional arguments.</p>
|
||
<p>This is equivalent to the Python expression <code>self(*args)</code>.</p>
|
||
</div><h4 id="method.call_method" class="method"><code>pub fn <a href="#method.call_method" class="fnname">call_method</a>(<br> &self, <br> name: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> args: impl <a class="trait" href="../conversion/trait.IntoPy.html" title="trait pyo3::conversion::IntoPy">IntoPy</a><<a class="struct" href="struct.Py.html" title="struct pyo3::prelude::Py">Py</a><<a class="struct" href="../types/struct.PyTuple.html" title="struct pyo3::types::PyTuple">PyTuple</a>>>, <br> kwargs: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="struct" href="../types/struct.PyDict.html" title="struct pyo3::types::PyDict">PyDict</a>><br>) -> <a class="type" href="type.PyResult.html" title="type pyo3::prelude::PyResult">PyResult</a><&<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>></code><a href="#method.call_method" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/any.rs.html#262-283" title="goto source code">[src]</a></h4><div class="docblock"><p>Calls a method on the object.</p>
|
||
<p>This is equivalent to the Python expression <code>self.name(*args, **kwargs)</code>.</p>
|
||
<h1 id="example-1" class="section-header"><a href="#example-1">Example</a></h1>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered">
|
||
<span class="kw">use</span> <span class="ident">pyo3::types::IntoPyDict</span>;
|
||
|
||
<span class="kw">let</span> <span class="ident">gil</span> <span class="op">=</span> <span class="ident">Python::acquire_gil</span>();
|
||
<span class="kw">let</span> <span class="ident">py</span> <span class="op">=</span> <span class="ident">gil</span>.<span class="ident">python</span>();
|
||
<span class="kw">let</span> <span class="ident">list</span> <span class="op">=</span> <span class="macro">vec!</span>[<span class="number">3</span>, <span class="number">6</span>, <span class="number">5</span>, <span class="number">4</span>, <span class="number">7</span>].<span class="ident">to_object</span>(<span class="ident">py</span>);
|
||
<span class="kw">let</span> <span class="ident">dict</span> <span class="op">=</span> <span class="macro">vec!</span>[(<span class="string">"reverse"</span>, <span class="bool-val">true</span>)].<span class="ident">into_py_dict</span>(<span class="ident">py</span>);
|
||
<span class="ident">list</span>.<span class="ident">call_method</span>(<span class="ident">py</span>, <span class="string">"sort"</span>, (), <span class="prelude-val">Some</span>(<span class="ident">dict</span>)).<span class="ident">unwrap</span>();
|
||
<span class="macro">assert_eq!</span>(<span class="ident">list</span>.<span class="ident">extract</span>::<span class="op"><</span><span class="ident">Vec</span><span class="op"><</span><span class="ident">i32</span><span class="op">></span><span class="op">></span>(<span class="ident">py</span>).<span class="ident">unwrap</span>(), <span class="macro">vec!</span>[<span class="number">7</span>, <span class="number">6</span>, <span class="number">5</span>, <span class="number">4</span>, <span class="number">3</span>]);
|
||
|
||
<span class="kw">let</span> <span class="ident">new_element</span> <span class="op">=</span> <span class="number">1</span>.<span class="ident">to_object</span>(<span class="ident">py</span>);
|
||
<span class="ident">list</span>.<span class="ident">call_method</span>(<span class="ident">py</span>, <span class="string">"append"</span>, (<span class="ident">new_element</span>,), <span class="prelude-val">None</span>).<span class="ident">unwrap</span>();
|
||
<span class="macro">assert_eq!</span>(<span class="ident">list</span>.<span class="ident">extract</span>::<span class="op"><</span><span class="ident">Vec</span><span class="op"><</span><span class="ident">i32</span><span class="op">></span><span class="op">></span>(<span class="ident">py</span>).<span class="ident">unwrap</span>(), <span class="macro">vec!</span>[<span class="number">7</span>, <span class="number">6</span>, <span class="number">5</span>, <span class="number">4</span>, <span class="number">3</span>, <span class="number">1</span>]);</pre></div>
|
||
</div><h4 id="method.call_method0" class="method"><code>pub fn <a href="#method.call_method0" class="fnname">call_method0</a>(&self, name: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="type" href="type.PyResult.html" title="type pyo3::prelude::PyResult">PyResult</a><&<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>></code><a href="#method.call_method0" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/any.rs.html#288-300" title="goto source code">[src]</a></h4><div class="docblock"><p>Calls a method on the object without arguments.</p>
|
||
<p>This is equivalent to the Python expression <code>self.name()</code>.</p>
|
||
</div><h4 id="method.call_method1" class="method"><code>pub fn <a href="#method.call_method1" class="fnname">call_method1</a>(<br> &self, <br> name: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> args: impl <a class="trait" href="../conversion/trait.IntoPy.html" title="trait pyo3::conversion::IntoPy">IntoPy</a><<a class="struct" href="struct.Py.html" title="struct pyo3::prelude::Py">Py</a><<a class="struct" href="../types/struct.PyTuple.html" title="struct pyo3::types::PyTuple">PyTuple</a>>><br>) -> <a class="type" href="type.PyResult.html" title="type pyo3::prelude::PyResult">PyResult</a><&<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>></code><a href="#method.call_method1" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/any.rs.html#305-307" title="goto source code">[src]</a></h4><div class="docblock"><p>Calls a method on the object with only positional arguments.</p>
|
||
<p>This is equivalent to the Python expression <code>self.name(*args)</code>.</p>
|
||
</div><h4 id="method.is_true" class="method"><code>pub fn <a href="#method.is_true" class="fnname">is_true</a>(&self) -> <a class="type" href="type.PyResult.html" title="type pyo3::prelude::PyResult">PyResult</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>></code><a href="#method.is_true" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/any.rs.html#312-319" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns whether the object is considered to be true.</p>
|
||
<p>This is equivalent to the Python expression <code>bool(self)</code>.</p>
|
||
</div><h4 id="method.is_none" class="method"><code>pub fn <a href="#method.is_none" class="fnname">is_none</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a href="#method.is_none" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/any.rs.html#324-326" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns whether the object is considered to be None.</p>
|
||
<p>This is equivalent to the Python expression <code>self is None</code>.</p>
|
||
</div><h4 id="method.is_empty" class="method"><code>pub fn <a href="#method.is_empty" class="fnname">is_empty</a>(&self) -> <a class="type" href="type.PyResult.html" title="type pyo3::prelude::PyResult">PyResult</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>></code><a href="#method.is_empty" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/any.rs.html#331-333" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns true if the sequence or mapping has a length of 0.</p>
|
||
<p>This is equivalent to the Python expression <code>len(self) == 0</code>.</p>
|
||
</div><h4 id="method.get_item" class="method"><code>pub fn <a href="#method.get_item" class="fnname">get_item</a><K>(&self, key: K) -> <a class="type" href="type.PyResult.html" title="type pyo3::prelude::PyResult">PyResult</a><&<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> <span class="where fmt-newline">where<br> K: <a class="trait" href="../conversion/trait.ToBorrowedObject.html" title="trait pyo3::conversion::ToBorrowedObject">ToBorrowedObject</a>, </span></code><a href="#method.get_item" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/any.rs.html#338-346" title="goto source code">[src]</a></h4><div class="docblock"><p>Gets an item from the collection.</p>
|
||
<p>This is equivalent to the Python expression <code>self[key]</code>.</p>
|
||
</div><h4 id="method.set_item" class="method"><code>pub fn <a href="#method.set_item" class="fnname">set_item</a><K, V>(&self, key: K, value: V) -> <a class="type" href="type.PyResult.html" title="type pyo3::prelude::PyResult">PyResult</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>> <span class="where fmt-newline">where<br> K: <a class="trait" href="../conversion/trait.ToBorrowedObject.html" title="trait pyo3::conversion::ToBorrowedObject">ToBorrowedObject</a>,<br> V: <a class="trait" href="../conversion/trait.ToBorrowedObject.html" title="trait pyo3::conversion::ToBorrowedObject">ToBorrowedObject</a>, </span></code><a href="#method.set_item" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/any.rs.html#351-361" title="goto source code">[src]</a></h4><div class="docblock"><p>Sets a collection item value.</p>
|
||
<p>This is equivalent to the Python expression <code>self[key] = value</code>.</p>
|
||
</div><h4 id="method.del_item" class="method"><code>pub fn <a href="#method.del_item" class="fnname">del_item</a><K>(&self, key: K) -> <a class="type" href="type.PyResult.html" title="type pyo3::prelude::PyResult">PyResult</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>> <span class="where fmt-newline">where<br> K: <a class="trait" href="../conversion/trait.ToBorrowedObject.html" title="trait pyo3::conversion::ToBorrowedObject">ToBorrowedObject</a>, </span></code><a href="#method.del_item" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/any.rs.html#366-373" title="goto source code">[src]</a></h4><div class="docblock"><p>Deletes an item from the collection.</p>
|
||
<p>This is equivalent to the Python expression <code>del self[key]</code>.</p>
|
||
</div><h4 id="method.iter" class="method"><code>pub fn <a href="#method.iter" class="fnname">iter</a>(&self) -> <a class="type" href="type.PyResult.html" title="type pyo3::prelude::PyResult">PyResult</a><&<a class="struct" href="../types/struct.PyIterator.html" title="struct pyo3::types::PyIterator">PyIterator</a>></code><a href="#method.iter" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/any.rs.html#379-381" title="goto source code">[src]</a></h4><div class="docblock"><p>Takes an object and returns an iterator for it.</p>
|
||
<p>This is typically a new iterator but if the argument is an iterator,
|
||
this returns itself.</p>
|
||
</div><h4 id="method.get_type" class="method"><code>pub fn <a href="#method.get_type" class="fnname">get_type</a>(&self) -> &<a class="struct" href="../types/struct.PyType.html" title="struct pyo3::types::PyType">PyType</a></code><a href="#method.get_type" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/any.rs.html#384-386" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns the Python type object for this object’s type.</p>
|
||
</div><h4 id="method.get_type_ptr" class="method"><code>pub fn <a href="#method.get_type_ptr" class="fnname">get_type_ptr</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="struct" href="../ffi/struct.PyTypeObject.html" title="struct pyo3::ffi::PyTypeObject">PyTypeObject</a></code><a href="#method.get_type_ptr" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/any.rs.html#390-392" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns the Python type pointer for this object.</p>
|
||
</div><h4 id="method.cast_as" class="method"><code>pub fn <a href="#method.cast_as" class="fnname">cast_as</a><'a, D>(&'a self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a </a>D, <a class="struct" href="../struct.PyDowncastError.html" title="struct pyo3::PyDowncastError">PyDowncastError</a><'_>> <span class="where fmt-newline">where<br> D: <a class="trait" href="../conversion/trait.PyTryFrom.html" title="trait pyo3::conversion::PyTryFrom">PyTryFrom</a><'a>, </span></code><a href="#method.cast_as" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/any.rs.html#397-402" title="goto source code">[src]</a></h4><div class="docblock"><p>Casts the PyObject to a concrete Python object type.</p>
|
||
<p>This can cast only to native Python types, not types implemented in Rust.</p>
|
||
</div><h4 id="method.extract" class="method"><code>pub fn <a href="#method.extract" class="fnname">extract</a><'a, D>(&'a self) -> <a class="type" href="type.PyResult.html" title="type pyo3::prelude::PyResult">PyResult</a><D> <span class="where fmt-newline">where<br> D: <a class="trait" href="../conversion/trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'a>, </span></code><a href="#method.extract" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/any.rs.html#407-412" title="goto source code">[src]</a></h4><div class="docblock"><p>Extracts some type from the Python object.</p>
|
||
<p>This is a wrapper function around <code>FromPyObject::extract()</code>.</p>
|
||
</div><h4 id="method.get_refcnt" class="method"><code>pub fn <a href="#method.get_refcnt" class="fnname">get_refcnt</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.isize.html">isize</a></code><a href="#method.get_refcnt" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/any.rs.html#415-417" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns the reference count for the Python object.</p>
|
||
</div><h4 id="method.repr" class="method"><code>pub fn <a href="#method.repr" class="fnname">repr</a>(&self) -> <a class="type" href="type.PyResult.html" title="type pyo3::prelude::PyResult">PyResult</a><&<a class="struct" href="../types/struct.PyString.html" title="struct pyo3::types::PyString">PyString</a>></code><a href="#method.repr" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/any.rs.html#422-427" title="goto source code">[src]</a></h4><div class="docblock"><p>Computes the “repr” representation of self.</p>
|
||
<p>This is equivalent to the Python expression <code>repr(self)</code>.</p>
|
||
</div><h4 id="method.str" class="method"><code>pub fn <a href="#method.str" class="fnname">str</a>(&self) -> <a class="type" href="type.PyResult.html" title="type pyo3::prelude::PyResult">PyResult</a><&<a class="struct" href="../types/struct.PyString.html" title="struct pyo3::types::PyString">PyString</a>></code><a href="#method.str" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/any.rs.html#432-437" title="goto source code">[src]</a></h4><div class="docblock"><p>Computes the “str” representation of self.</p>
|
||
<p>This is equivalent to the Python expression <code>str(self)</code>.</p>
|
||
</div><h4 id="method.hash" class="method"><code>pub fn <a href="#method.hash" class="fnname">hash</a>(&self) -> <a class="type" href="type.PyResult.html" title="type pyo3::prelude::PyResult">PyResult</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.isize.html">isize</a>></code><a href="#method.hash" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/any.rs.html#442-449" title="goto source code">[src]</a></h4><div class="docblock"><p>Retrieves the hash code of self.</p>
|
||
<p>This is equivalent to the Python expression <code>hash(self)</code>.</p>
|
||
</div><h4 id="method.len" class="method"><code>pub fn <a href="#method.len" class="fnname">len</a>(&self) -> <a class="type" href="type.PyResult.html" title="type pyo3::prelude::PyResult">PyResult</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>></code><a href="#method.len" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/any.rs.html#454-461" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns the length of the sequence or mapping.</p>
|
||
<p>This is equivalent to the Python expression <code>len(self)</code>.</p>
|
||
</div><h4 id="method.dir" class="method"><code>pub fn <a href="#method.dir" class="fnname">dir</a>(&self) -> &<a class="struct" href="../types/struct.PyList.html" title="struct pyo3::types::PyList">PyList</a></code><a href="#method.dir" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/any.rs.html#466-468" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns the list of attributes of this object.</p>
|
||
<p>This is equivalent to the Python expression <code>dir(self)</code>.</p>
|
||
</div><h4 id="method.is_instance" class="method"><code>pub fn <a href="#method.is_instance" class="fnname">is_instance</a><T: <a class="trait" href="../type_object/trait.PyTypeObject.html" title="trait pyo3::type_object::PyTypeObject">PyTypeObject</a>>(&self) -> <a class="type" href="type.PyResult.html" title="type pyo3::prelude::PyResult">PyResult</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>></code><a href="#method.is_instance" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/any.rs.html#473-475" title="goto source code">[src]</a></h4><div class="docblock"><p>Checks whether this object is an instance of type <code>T</code>.</p>
|
||
<p>This is equivalent to the Python expression <code>isinstance(self, T)</code>.</p>
|
||
</div></div></details><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsPyPointer" class="impl"><code class="in-band">impl <a class="trait" href="../conversion/trait.AsPyPointer.html" title="trait pyo3::conversion::AsPyPointer">AsPyPointer</a> for <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-AsPyPointer" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/any.rs.html#41-46" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ptr" class="method hidden trait-impl"><code>fn <a href="../conversion/trait.AsPyPointer.html#tymethod.as_ptr" class="fnname">as_ptr</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="struct" href="../ffi/struct.PyObject.html" title="struct pyo3::ffi::PyObject">PyObject</a></code><a href="#method.as_ptr" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/any.rs.html#43-45" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Retrieves the underlying FFI pointer (as a borrowed pointer).</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/struct.PyBaseException.html" title="struct pyo3::exceptions::PyBaseException">PyBaseException</a></code><a href="#impl-AsRef%3CPyAny%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#226" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#226" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-1" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/struct.PyException.html" title="struct pyo3::exceptions::PyException">PyException</a></code><a href="#impl-AsRef%3CPyAny%3E-1" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#227" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-1" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-1" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#227" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-10" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/struct.PyEOFError.html" title="struct pyo3::exceptions::PyEOFError">PyEOFError</a></code><a href="#impl-AsRef%3CPyAny%3E-10" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#246" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-10" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-10" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#246" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-11" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/struct.PyFloatingPointError.html" title="struct pyo3::exceptions::PyFloatingPointError">PyFloatingPointError</a></code><a href="#impl-AsRef%3CPyAny%3E-11" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#247-251" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-11" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-11" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#247-251" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-12" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/struct.PyOSError.html" title="struct pyo3::exceptions::PyOSError">PyOSError</a></code><a href="#impl-AsRef%3CPyAny%3E-12" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#252" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-12" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-12" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#252" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-13" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/struct.PyImportError.html" title="struct pyo3::exceptions::PyImportError">PyImportError</a></code><a href="#impl-AsRef%3CPyAny%3E-13" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#253" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-13" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-13" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#253" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-14" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/struct.PyModuleNotFoundError.html" title="struct pyo3::exceptions::PyModuleNotFoundError">PyModuleNotFoundError</a></code><a href="#impl-AsRef%3CPyAny%3E-14" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#255-259" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-14" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-14" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#255-259" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-15" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/struct.PyIndexError.html" title="struct pyo3::exceptions::PyIndexError">PyIndexError</a></code><a href="#impl-AsRef%3CPyAny%3E-15" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#261" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-15" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-15" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#261" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-16" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/struct.PyKeyError.html" title="struct pyo3::exceptions::PyKeyError">PyKeyError</a></code><a href="#impl-AsRef%3CPyAny%3E-16" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#262" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-16" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-16" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#262" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-17" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/struct.PyKeyboardInterrupt.html" title="struct pyo3::exceptions::PyKeyboardInterrupt">PyKeyboardInterrupt</a></code><a href="#impl-AsRef%3CPyAny%3E-17" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#263-267" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-17" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-17" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#263-267" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-18" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/struct.PyMemoryError.html" title="struct pyo3::exceptions::PyMemoryError">PyMemoryError</a></code><a href="#impl-AsRef%3CPyAny%3E-18" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#268" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-18" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-18" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#268" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-19" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/struct.PyNameError.html" title="struct pyo3::exceptions::PyNameError">PyNameError</a></code><a href="#impl-AsRef%3CPyAny%3E-19" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#269" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-19" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-19" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#269" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-2" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/struct.PyStopAsyncIteration.html" title="struct pyo3::exceptions::PyStopAsyncIteration">PyStopAsyncIteration</a></code><a href="#impl-AsRef%3CPyAny%3E-2" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#228-232" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-2" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-2" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#228-232" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-20" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/struct.PyOverflowError.html" title="struct pyo3::exceptions::PyOverflowError">PyOverflowError</a></code><a href="#impl-AsRef%3CPyAny%3E-20" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#270" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-20" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-20" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#270" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-21" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/struct.PyRuntimeError.html" title="struct pyo3::exceptions::PyRuntimeError">PyRuntimeError</a></code><a href="#impl-AsRef%3CPyAny%3E-21" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#271" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-21" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-21" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#271" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-22" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/struct.PyRecursionError.html" title="struct pyo3::exceptions::PyRecursionError">PyRecursionError</a></code><a href="#impl-AsRef%3CPyAny%3E-22" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#272" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-22" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-22" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#272" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-23" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/struct.PyNotImplementedError.html" title="struct pyo3::exceptions::PyNotImplementedError">PyNotImplementedError</a></code><a href="#impl-AsRef%3CPyAny%3E-23" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#273-277" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-23" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-23" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#273-277" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-24" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/struct.PySyntaxError.html" title="struct pyo3::exceptions::PySyntaxError">PySyntaxError</a></code><a href="#impl-AsRef%3CPyAny%3E-24" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#278-283" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-24" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-24" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#278-283" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-25" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/struct.PyReferenceError.html" title="struct pyo3::exceptions::PyReferenceError">PyReferenceError</a></code><a href="#impl-AsRef%3CPyAny%3E-25" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#284" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-25" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-25" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#284" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-26" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/struct.PySystemError.html" title="struct pyo3::exceptions::PySystemError">PySystemError</a></code><a href="#impl-AsRef%3CPyAny%3E-26" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#285" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-26" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-26" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#285" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-27" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/struct.PySystemExit.html" title="struct pyo3::exceptions::PySystemExit">PySystemExit</a></code><a href="#impl-AsRef%3CPyAny%3E-27" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#286-291" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-27" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-27" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#286-291" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-28" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/struct.PyTypeError.html" title="struct pyo3::exceptions::PyTypeError">PyTypeError</a></code><a href="#impl-AsRef%3CPyAny%3E-28" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#292" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-28" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-28" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#292" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-29" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/struct.PyUnboundLocalError.html" title="struct pyo3::exceptions::PyUnboundLocalError">PyUnboundLocalError</a></code><a href="#impl-AsRef%3CPyAny%3E-29" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#293-297" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-29" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-29" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#293-297" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-3" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/struct.PyStopIteration.html" title="struct pyo3::exceptions::PyStopIteration">PyStopIteration</a></code><a href="#impl-AsRef%3CPyAny%3E-3" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#233-238" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-3" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-3" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#233-238" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-30" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/struct.PyUnicodeError.html" title="struct pyo3::exceptions::PyUnicodeError">PyUnicodeError</a></code><a href="#impl-AsRef%3CPyAny%3E-30" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#298-303" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-30" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-30" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#298-303" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-31" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/struct.PyUnicodeDecodeError.html" title="struct pyo3::exceptions::PyUnicodeDecodeError">PyUnicodeDecodeError</a></code><a href="#impl-AsRef%3CPyAny%3E-31" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#304-308" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-31" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-31" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#304-308" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-32" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/struct.PyUnicodeEncodeError.html" title="struct pyo3::exceptions::PyUnicodeEncodeError">PyUnicodeEncodeError</a></code><a href="#impl-AsRef%3CPyAny%3E-32" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#309-313" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-32" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-32" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#309-313" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-33" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/struct.PyUnicodeTranslateError.html" title="struct pyo3::exceptions::PyUnicodeTranslateError">PyUnicodeTranslateError</a></code><a href="#impl-AsRef%3CPyAny%3E-33" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#314-318" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-33" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-33" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#314-318" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-34" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/struct.PyValueError.html" title="struct pyo3::exceptions::PyValueError">PyValueError</a></code><a href="#impl-AsRef%3CPyAny%3E-34" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#319" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-34" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-34" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#319" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-35" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/struct.PyZeroDivisionError.html" title="struct pyo3::exceptions::PyZeroDivisionError">PyZeroDivisionError</a></code><a href="#impl-AsRef%3CPyAny%3E-35" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#320-324" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-35" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-35" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#320-324" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-36" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/struct.PyBlockingIOError.html" title="struct pyo3::exceptions::PyBlockingIOError">PyBlockingIOError</a></code><a href="#impl-AsRef%3CPyAny%3E-36" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#326" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-36" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-36" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#326" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-37" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/struct.PyBrokenPipeError.html" title="struct pyo3::exceptions::PyBrokenPipeError">PyBrokenPipeError</a></code><a href="#impl-AsRef%3CPyAny%3E-37" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#327" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-37" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-37" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#327" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-38" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/struct.PyChildProcessError.html" title="struct pyo3::exceptions::PyChildProcessError">PyChildProcessError</a></code><a href="#impl-AsRef%3CPyAny%3E-38" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#328-332" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-38" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-38" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#328-332" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-39" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/struct.PyConnectionError.html" title="struct pyo3::exceptions::PyConnectionError">PyConnectionError</a></code><a href="#impl-AsRef%3CPyAny%3E-39" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#333" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-39" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-39" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#333" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-4" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/struct.PyGeneratorExit.html" title="struct pyo3::exceptions::PyGeneratorExit">PyGeneratorExit</a></code><a href="#impl-AsRef%3CPyAny%3E-4" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#239" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-4" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-4" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#239" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-40" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/struct.PyConnectionAbortedError.html" title="struct pyo3::exceptions::PyConnectionAbortedError">PyConnectionAbortedError</a></code><a href="#impl-AsRef%3CPyAny%3E-40" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#334-338" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-40" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-40" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#334-338" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-41" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/struct.PyConnectionRefusedError.html" title="struct pyo3::exceptions::PyConnectionRefusedError">PyConnectionRefusedError</a></code><a href="#impl-AsRef%3CPyAny%3E-41" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#339-343" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-41" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-41" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#339-343" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-42" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/struct.PyConnectionResetError.html" title="struct pyo3::exceptions::PyConnectionResetError">PyConnectionResetError</a></code><a href="#impl-AsRef%3CPyAny%3E-42" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#344-348" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-42" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-42" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#344-348" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-43" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/struct.PyFileExistsError.html" title="struct pyo3::exceptions::PyFileExistsError">PyFileExistsError</a></code><a href="#impl-AsRef%3CPyAny%3E-43" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#349" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-43" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-43" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#349" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-44" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/struct.PyFileNotFoundError.html" title="struct pyo3::exceptions::PyFileNotFoundError">PyFileNotFoundError</a></code><a href="#impl-AsRef%3CPyAny%3E-44" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#350-354" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-44" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-44" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#350-354" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-45" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/struct.PyInterruptedError.html" title="struct pyo3::exceptions::PyInterruptedError">PyInterruptedError</a></code><a href="#impl-AsRef%3CPyAny%3E-45" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#355" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-45" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-45" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#355" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-46" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/struct.PyIsADirectoryError.html" title="struct pyo3::exceptions::PyIsADirectoryError">PyIsADirectoryError</a></code><a href="#impl-AsRef%3CPyAny%3E-46" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#356-360" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-46" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-46" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#356-360" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-47" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/struct.PyNotADirectoryError.html" title="struct pyo3::exceptions::PyNotADirectoryError">PyNotADirectoryError</a></code><a href="#impl-AsRef%3CPyAny%3E-47" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#361-365" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-47" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-47" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#361-365" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-48" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/struct.PyPermissionError.html" title="struct pyo3::exceptions::PyPermissionError">PyPermissionError</a></code><a href="#impl-AsRef%3CPyAny%3E-48" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#366" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-48" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-48" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#366" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-49" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/struct.PyProcessLookupError.html" title="struct pyo3::exceptions::PyProcessLookupError">PyProcessLookupError</a></code><a href="#impl-AsRef%3CPyAny%3E-49" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#367-371" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-49" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-49" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#367-371" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-5" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/struct.PyArithmeticError.html" title="struct pyo3::exceptions::PyArithmeticError">PyArithmeticError</a></code><a href="#impl-AsRef%3CPyAny%3E-5" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#240" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-5" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-5" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#240" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-50" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/struct.PyTimeoutError.html" title="struct pyo3::exceptions::PyTimeoutError">PyTimeoutError</a></code><a href="#impl-AsRef%3CPyAny%3E-50" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#372" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-50" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-50" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#372" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-51" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/struct.PyEnvironmentError.html" title="struct pyo3::exceptions::PyEnvironmentError">PyEnvironmentError</a></code><a href="#impl-AsRef%3CPyAny%3E-51" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#375" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-51" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-51" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#375" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-52" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/struct.PyIOError.html" title="struct pyo3::exceptions::PyIOError">PyIOError</a></code><a href="#impl-AsRef%3CPyAny%3E-52" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#377" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-52" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-52" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#377" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-53" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/asyncio/struct.CancelledError.html" title="struct pyo3::exceptions::asyncio::CancelledError">CancelledError</a></code><a href="#impl-AsRef%3CPyAny%3E-53" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#419" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-53" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-53" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#419" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-54" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/asyncio/struct.InvalidStateError.html" title="struct pyo3::exceptions::asyncio::InvalidStateError">InvalidStateError</a></code><a href="#impl-AsRef%3CPyAny%3E-54" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#420" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-54" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-54" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#420" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-55" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/asyncio/struct.TimeoutError.html" title="struct pyo3::exceptions::asyncio::TimeoutError">TimeoutError</a></code><a href="#impl-AsRef%3CPyAny%3E-55" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#421" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-55" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-55" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#421" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-56" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/asyncio/struct.IncompleteReadError.html" title="struct pyo3::exceptions::asyncio::IncompleteReadError">IncompleteReadError</a></code><a href="#impl-AsRef%3CPyAny%3E-56" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#422" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-56" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-56" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#422" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-57" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/asyncio/struct.LimitOverrunError.html" title="struct pyo3::exceptions::asyncio::LimitOverrunError">LimitOverrunError</a></code><a href="#impl-AsRef%3CPyAny%3E-57" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#423" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-57" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-57" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#423" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-58" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/asyncio/struct.QueueEmpty.html" title="struct pyo3::exceptions::asyncio::QueueEmpty">QueueEmpty</a></code><a href="#impl-AsRef%3CPyAny%3E-58" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#424" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-58" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-58" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#424" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-59" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/asyncio/struct.QueueFull.html" title="struct pyo3::exceptions::asyncio::QueueFull">QueueFull</a></code><a href="#impl-AsRef%3CPyAny%3E-59" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#425" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-59" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-59" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#425" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-6" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/struct.PyLookupError.html" title="struct pyo3::exceptions::PyLookupError">PyLookupError</a></code><a href="#impl-AsRef%3CPyAny%3E-6" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#241" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-6" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-6" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#241" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-60" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/socket/struct.herror.html" title="struct pyo3::exceptions::socket::herror">herror</a></code><a href="#impl-AsRef%3CPyAny%3E-60" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#430" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-60" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-60" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#430" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-61" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/socket/struct.gaierror.html" title="struct pyo3::exceptions::socket::gaierror">gaierror</a></code><a href="#impl-AsRef%3CPyAny%3E-61" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#431" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-61" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-61" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#431" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-62" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/socket/struct.timeout.html" title="struct pyo3::exceptions::socket::timeout">timeout</a></code><a href="#impl-AsRef%3CPyAny%3E-62" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#432" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-62" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-62" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#432" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-63" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../panic/struct.PanicException.html" title="struct pyo3::panic::PanicException">PanicException</a></code><a href="#impl-AsRef%3CPyAny%3E-63" class="anchor"></a><a class="srclink" href="../../src/pyo3/panic.rs.html#3-13" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-63" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-63" class="anchor"></a><a class="srclink" href="../../src/pyo3/panic.rs.html#3-13" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-64" class="impl"><code class="in-band">impl<T: <a class="trait" href="../pyclass/trait.PyClass.html" title="trait pyo3::pyclass::PyClass">PyClass</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../pycell/struct.PyCell.html" title="struct pyo3::pycell::PyCell">PyCell</a><T></code><a href="#impl-AsRef%3CPyAny%3E-64" class="anchor"></a><a class="srclink" href="../../src/pyo3/pycell.rs.html#422-426" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-64" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-64" class="anchor"></a><a class="srclink" href="../../src/pyo3/pycell.rs.html#423-425" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-65" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../types/struct.PyBool.html" title="struct pyo3::types::PyBool">PyBool</a></code><a href="#impl-AsRef%3CPyAny%3E-65" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/boolobject.rs.html#11" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-65" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-65" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/boolobject.rs.html#11" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-66" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../types/struct.PyByteArray.html" title="struct pyo3::types::PyByteArray">PyByteArray</a></code><a href="#impl-AsRef%3CPyAny%3E-66" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/bytearray.rs.html#12" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-66" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-66" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/bytearray.rs.html#12" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-67" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../types/struct.PyBytes.html" title="struct pyo3::types::PyBytes">PyBytes</a></code><a href="#impl-AsRef%3CPyAny%3E-67" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/bytes.rs.html#16" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-67" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-67" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/bytes.rs.html#16" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-68" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a></code><a href="#impl-AsRef%3CPyAny%3E-68" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/complex.rs.html#12-17" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-68" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-68" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/complex.rs.html#12-17" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-69" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../types/struct.PyDate.html" title="struct pyo3::types::PyDate">PyDate</a></code><a href="#impl-AsRef%3CPyAny%3E-69" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/datetime.rs.html#67-73" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-69" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-69" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/datetime.rs.html#67-73" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-7" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/struct.PyAssertionError.html" title="struct pyo3::exceptions::PyAssertionError">PyAssertionError</a></code><a href="#impl-AsRef%3CPyAny%3E-7" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#243" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-7" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-7" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#243" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-70" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../types/struct.PyDateTime.html" title="struct pyo3::types::PyDateTime">PyDateTime</a></code><a href="#impl-AsRef%3CPyAny%3E-70" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/datetime.rs.html#124-130" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-70" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-70" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/datetime.rs.html#124-130" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-71" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../types/struct.PyTime.html" title="struct pyo3::types::PyTime">PyTime</a></code><a href="#impl-AsRef%3CPyAny%3E-71" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/datetime.rs.html#267-273" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-71" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-71" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/datetime.rs.html#267-273" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-72" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../types/struct.PyTzInfo.html" title="struct pyo3::types::PyTzInfo">PyTzInfo</a></code><a href="#impl-AsRef%3CPyAny%3E-72" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/datetime.rs.html#351-357" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-72" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-72" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/datetime.rs.html#351-357" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-73" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../types/struct.PyDelta.html" title="struct pyo3::types::PyDelta">PyDelta</a></code><a href="#impl-AsRef%3CPyAny%3E-73" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/datetime.rs.html#362-368" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-73" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-73" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/datetime.rs.html#362-368" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-74" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../types/struct.PyDict.html" title="struct pyo3::types::PyDict">PyDict</a></code><a href="#impl-AsRef%3CPyAny%3E-74" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/dict.rs.html#19-24" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-74" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-74" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/dict.rs.html#19-24" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-75" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../types/struct.PyFloat.html" title="struct pyo3::types::PyFloat">PyFloat</a></code><a href="#impl-AsRef%3CPyAny%3E-75" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/floatob.rs.html#19-24" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-75" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-75" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/floatob.rs.html#19-24" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-76" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../types/struct.PyCFunction.html" title="struct pyo3::types::PyCFunction">PyCFunction</a></code><a href="#impl-AsRef%3CPyAny%3E-76" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/function.rs.html#12" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-76" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-76" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/function.rs.html#12" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-77" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../types/struct.PyFunction.html" title="struct pyo3::types::PyFunction">PyFunction</a></code><a href="#impl-AsRef%3CPyAny%3E-77" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/function.rs.html#100" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-77" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-77" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/function.rs.html#100" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-78" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../types/struct.PyIterator.html" title="struct pyo3::types::PyIterator">PyIterator</a></code><a href="#impl-AsRef%3CPyAny%3E-78" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/iterator.rs.html#29" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-78" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-78" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/iterator.rs.html#29" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-79" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../types/struct.PyList.html" title="struct pyo3::types::PyList">PyList</a></code><a href="#impl-AsRef%3CPyAny%3E-79" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/list.rs.html#16" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-79" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-79" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/list.rs.html#16" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-8" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/struct.PyAttributeError.html" title="struct pyo3::exceptions::PyAttributeError">PyAttributeError</a></code><a href="#impl-AsRef%3CPyAny%3E-8" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#244" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-8" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-8" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#244" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-80" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="struct.PyModule.html" title="struct pyo3::prelude::PyModule">PyModule</a></code><a href="#impl-AsRef%3CPyAny%3E-80" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/module.rs.html#23" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-80" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-80" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/module.rs.html#23" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-81" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../types/struct.PyLong.html" title="struct pyo3::types::PyLong">PyLong</a></code><a href="#impl-AsRef%3CPyAny%3E-81" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/num.rs.html#58" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-81" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-81" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/num.rs.html#58" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-82" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../types/struct.PySequence.html" title="struct pyo3::types::PySequence">PySequence</a></code><a href="#impl-AsRef%3CPyAny%3E-82" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/sequence.rs.html#14" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-82" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-82" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/sequence.rs.html#14" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-83" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../types/struct.PySet.html" title="struct pyo3::types::PySet">PySet</a></code><a href="#impl-AsRef%3CPyAny%3E-83" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/set.rs.html#23" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-83" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-83" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/set.rs.html#23" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-84" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../types/struct.PyFrozenSet.html" title="struct pyo3::types::PyFrozenSet">PyFrozenSet</a></code><a href="#impl-AsRef%3CPyAny%3E-84" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/set.rs.html#24-29" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-84" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-84" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/set.rs.html#24-29" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-85" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../types/struct.PySlice.html" title="struct pyo3::types::PySlice">PySlice</a></code><a href="#impl-AsRef%3CPyAny%3E-85" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/slice.rs.html#15-20" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-85" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-85" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/slice.rs.html#15-20" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-86" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../types/struct.PyString.html" title="struct pyo3::types::PyString">PyString</a></code><a href="#impl-AsRef%3CPyAny%3E-86" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/string.rs.html#18" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-86" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-86" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/string.rs.html#18" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-87" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../types/struct.PyTuple.html" title="struct pyo3::types::PyTuple">PyTuple</a></code><a href="#impl-AsRef%3CPyAny%3E-87" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/tuple.rs.html#15" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-87" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-87" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/tuple.rs.html#15" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-88" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../types/struct.PyType.html" title="struct pyo3::types::PyType">PyType</a></code><a href="#impl-AsRef%3CPyAny%3E-88" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/typeobject.rs.html#14" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-88" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-88" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/typeobject.rs.html#14" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-AsRef%3CPyAny%3E-9" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../exceptions/struct.PyBufferError.html" title="struct pyo3::exceptions::PyBufferError">PyBufferError</a></code><a href="#impl-AsRef%3CPyAny%3E-9" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#245" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.as_ref-9" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#method.as_ref-9" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#245" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-Debug" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-Debug" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/any.rs.html#61" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.fmt" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></code><a href="#method.fmt" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/any.rs.html#61" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-Display" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> for <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-Display" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/any.rs.html#61" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.fmt-1" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html#tymethod.fmt" class="fnname">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></code><a href="#method.fmt-1" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/any.rs.html#61" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html#tymethod.fmt">Read more</a></p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20CancelledError%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/asyncio/struct.CancelledError.html" title="struct pyo3::exceptions::asyncio::CancelledError">CancelledError</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20CancelledError%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#419" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-53" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/asyncio/struct.CancelledError.html" title="struct pyo3::exceptions::asyncio::CancelledError">CancelledError</a>) -> Self</code><a href="#method.from-53" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#419" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20IncompleteReadError%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/asyncio/struct.IncompleteReadError.html" title="struct pyo3::exceptions::asyncio::IncompleteReadError">IncompleteReadError</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20IncompleteReadError%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#422" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-56" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/asyncio/struct.IncompleteReadError.html" title="struct pyo3::exceptions::asyncio::IncompleteReadError">IncompleteReadError</a>) -> Self</code><a href="#method.from-56" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#422" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20InvalidStateError%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/asyncio/struct.InvalidStateError.html" title="struct pyo3::exceptions::asyncio::InvalidStateError">InvalidStateError</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20InvalidStateError%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#420" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-54" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/asyncio/struct.InvalidStateError.html" title="struct pyo3::exceptions::asyncio::InvalidStateError">InvalidStateError</a>) -> Self</code><a href="#method.from-54" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#420" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20LimitOverrunError%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/asyncio/struct.LimitOverrunError.html" title="struct pyo3::exceptions::asyncio::LimitOverrunError">LimitOverrunError</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20LimitOverrunError%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#423" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-57" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/asyncio/struct.LimitOverrunError.html" title="struct pyo3::exceptions::asyncio::LimitOverrunError">LimitOverrunError</a>) -> Self</code><a href="#method.from-57" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#423" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PanicException%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../panic/struct.PanicException.html" title="struct pyo3::panic::PanicException">PanicException</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PanicException%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/panic.rs.html#3-13" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-63" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../panic/struct.PanicException.html" title="struct pyo3::panic::PanicException">PanicException</a>) -> Self</code><a href="#method.from-63" class="anchor"></a><a class="srclink" href="../../src/pyo3/panic.rs.html#3-13" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyArithmeticError%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/struct.PyArithmeticError.html" title="struct pyo3::exceptions::PyArithmeticError">PyArithmeticError</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyArithmeticError%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#240" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-5" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/struct.PyArithmeticError.html" title="struct pyo3::exceptions::PyArithmeticError">PyArithmeticError</a>) -> Self</code><a href="#method.from-5" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#240" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyAssertionError%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/struct.PyAssertionError.html" title="struct pyo3::exceptions::PyAssertionError">PyAssertionError</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyAssertionError%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#243" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-7" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/struct.PyAssertionError.html" title="struct pyo3::exceptions::PyAssertionError">PyAssertionError</a>) -> Self</code><a href="#method.from-7" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#243" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyAttributeError%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/struct.PyAttributeError.html" title="struct pyo3::exceptions::PyAttributeError">PyAttributeError</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyAttributeError%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#244" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-8" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/struct.PyAttributeError.html" title="struct pyo3::exceptions::PyAttributeError">PyAttributeError</a>) -> Self</code><a href="#method.from-8" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#244" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyBaseException%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/struct.PyBaseException.html" title="struct pyo3::exceptions::PyBaseException">PyBaseException</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyBaseException%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#226" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/struct.PyBaseException.html" title="struct pyo3::exceptions::PyBaseException">PyBaseException</a>) -> Self</code><a href="#method.from" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#226" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyBlockingIOError%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/struct.PyBlockingIOError.html" title="struct pyo3::exceptions::PyBlockingIOError">PyBlockingIOError</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyBlockingIOError%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#326" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-36" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/struct.PyBlockingIOError.html" title="struct pyo3::exceptions::PyBlockingIOError">PyBlockingIOError</a>) -> Self</code><a href="#method.from-36" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#326" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyBool%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../types/struct.PyBool.html" title="struct pyo3::types::PyBool">PyBool</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyBool%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/boolobject.rs.html#11" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-64" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../types/struct.PyBool.html" title="struct pyo3::types::PyBool">PyBool</a>) -> Self</code><a href="#method.from-64" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/boolobject.rs.html#11" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyBrokenPipeError%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/struct.PyBrokenPipeError.html" title="struct pyo3::exceptions::PyBrokenPipeError">PyBrokenPipeError</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyBrokenPipeError%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#327" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-37" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/struct.PyBrokenPipeError.html" title="struct pyo3::exceptions::PyBrokenPipeError">PyBrokenPipeError</a>) -> Self</code><a href="#method.from-37" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#327" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyBufferError%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/struct.PyBufferError.html" title="struct pyo3::exceptions::PyBufferError">PyBufferError</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyBufferError%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#245" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-9" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/struct.PyBufferError.html" title="struct pyo3::exceptions::PyBufferError">PyBufferError</a>) -> Self</code><a href="#method.from-9" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#245" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyByteArray%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../types/struct.PyByteArray.html" title="struct pyo3::types::PyByteArray">PyByteArray</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyByteArray%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/bytearray.rs.html#12" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-65" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../types/struct.PyByteArray.html" title="struct pyo3::types::PyByteArray">PyByteArray</a>) -> Self</code><a href="#method.from-65" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/bytearray.rs.html#12" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyBytes%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../types/struct.PyBytes.html" title="struct pyo3::types::PyBytes">PyBytes</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyBytes%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/bytes.rs.html#16" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-66" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../types/struct.PyBytes.html" title="struct pyo3::types::PyBytes">PyBytes</a>) -> Self</code><a href="#method.from-66" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/bytes.rs.html#16" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyCFunction%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../types/struct.PyCFunction.html" title="struct pyo3::types::PyCFunction">PyCFunction</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyCFunction%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/function.rs.html#12" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-75" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../types/struct.PyCFunction.html" title="struct pyo3::types::PyCFunction">PyCFunction</a>) -> Self</code><a href="#method.from-75" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/function.rs.html#12" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyChildProcessError%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/struct.PyChildProcessError.html" title="struct pyo3::exceptions::PyChildProcessError">PyChildProcessError</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyChildProcessError%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#328-332" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-38" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/struct.PyChildProcessError.html" title="struct pyo3::exceptions::PyChildProcessError">PyChildProcessError</a>) -> Self</code><a href="#method.from-38" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#328-332" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyComplex%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyComplex%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/complex.rs.html#12-17" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-67" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>) -> Self</code><a href="#method.from-67" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/complex.rs.html#12-17" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyConnectionAbortedError%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/struct.PyConnectionAbortedError.html" title="struct pyo3::exceptions::PyConnectionAbortedError">PyConnectionAbortedError</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyConnectionAbortedError%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#334-338" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-40" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/struct.PyConnectionAbortedError.html" title="struct pyo3::exceptions::PyConnectionAbortedError">PyConnectionAbortedError</a>) -> Self</code><a href="#method.from-40" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#334-338" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyConnectionError%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/struct.PyConnectionError.html" title="struct pyo3::exceptions::PyConnectionError">PyConnectionError</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyConnectionError%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#333" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-39" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/struct.PyConnectionError.html" title="struct pyo3::exceptions::PyConnectionError">PyConnectionError</a>) -> Self</code><a href="#method.from-39" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#333" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyConnectionRefusedError%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/struct.PyConnectionRefusedError.html" title="struct pyo3::exceptions::PyConnectionRefusedError">PyConnectionRefusedError</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyConnectionRefusedError%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#339-343" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-41" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/struct.PyConnectionRefusedError.html" title="struct pyo3::exceptions::PyConnectionRefusedError">PyConnectionRefusedError</a>) -> Self</code><a href="#method.from-41" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#339-343" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyConnectionResetError%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/struct.PyConnectionResetError.html" title="struct pyo3::exceptions::PyConnectionResetError">PyConnectionResetError</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyConnectionResetError%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#344-348" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-42" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/struct.PyConnectionResetError.html" title="struct pyo3::exceptions::PyConnectionResetError">PyConnectionResetError</a>) -> Self</code><a href="#method.from-42" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#344-348" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyDate%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../types/struct.PyDate.html" title="struct pyo3::types::PyDate">PyDate</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyDate%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/datetime.rs.html#67-73" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-68" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../types/struct.PyDate.html" title="struct pyo3::types::PyDate">PyDate</a>) -> Self</code><a href="#method.from-68" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/datetime.rs.html#67-73" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyDateTime%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../types/struct.PyDateTime.html" title="struct pyo3::types::PyDateTime">PyDateTime</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyDateTime%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/datetime.rs.html#124-130" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-69" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../types/struct.PyDateTime.html" title="struct pyo3::types::PyDateTime">PyDateTime</a>) -> Self</code><a href="#method.from-69" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/datetime.rs.html#124-130" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyDelta%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../types/struct.PyDelta.html" title="struct pyo3::types::PyDelta">PyDelta</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyDelta%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/datetime.rs.html#362-368" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-72" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../types/struct.PyDelta.html" title="struct pyo3::types::PyDelta">PyDelta</a>) -> Self</code><a href="#method.from-72" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/datetime.rs.html#362-368" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyDict%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../types/struct.PyDict.html" title="struct pyo3::types::PyDict">PyDict</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyDict%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/dict.rs.html#19-24" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-73" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../types/struct.PyDict.html" title="struct pyo3::types::PyDict">PyDict</a>) -> Self</code><a href="#method.from-73" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/dict.rs.html#19-24" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyEOFError%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/struct.PyEOFError.html" title="struct pyo3::exceptions::PyEOFError">PyEOFError</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyEOFError%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#246" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-10" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/struct.PyEOFError.html" title="struct pyo3::exceptions::PyEOFError">PyEOFError</a>) -> Self</code><a href="#method.from-10" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#246" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyEnvironmentError%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/struct.PyEnvironmentError.html" title="struct pyo3::exceptions::PyEnvironmentError">PyEnvironmentError</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyEnvironmentError%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#375" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-51" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/struct.PyEnvironmentError.html" title="struct pyo3::exceptions::PyEnvironmentError">PyEnvironmentError</a>) -> Self</code><a href="#method.from-51" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#375" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyException%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/struct.PyException.html" title="struct pyo3::exceptions::PyException">PyException</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyException%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#227" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-1" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/struct.PyException.html" title="struct pyo3::exceptions::PyException">PyException</a>) -> Self</code><a href="#method.from-1" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#227" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyFileExistsError%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/struct.PyFileExistsError.html" title="struct pyo3::exceptions::PyFileExistsError">PyFileExistsError</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyFileExistsError%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#349" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-43" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/struct.PyFileExistsError.html" title="struct pyo3::exceptions::PyFileExistsError">PyFileExistsError</a>) -> Self</code><a href="#method.from-43" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#349" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyFileNotFoundError%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/struct.PyFileNotFoundError.html" title="struct pyo3::exceptions::PyFileNotFoundError">PyFileNotFoundError</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyFileNotFoundError%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#350-354" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-44" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/struct.PyFileNotFoundError.html" title="struct pyo3::exceptions::PyFileNotFoundError">PyFileNotFoundError</a>) -> Self</code><a href="#method.from-44" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#350-354" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyFloat%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../types/struct.PyFloat.html" title="struct pyo3::types::PyFloat">PyFloat</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyFloat%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/floatob.rs.html#19-24" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-74" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../types/struct.PyFloat.html" title="struct pyo3::types::PyFloat">PyFloat</a>) -> Self</code><a href="#method.from-74" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/floatob.rs.html#19-24" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyFloatingPointError%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/struct.PyFloatingPointError.html" title="struct pyo3::exceptions::PyFloatingPointError">PyFloatingPointError</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyFloatingPointError%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#247-251" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-11" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/struct.PyFloatingPointError.html" title="struct pyo3::exceptions::PyFloatingPointError">PyFloatingPointError</a>) -> Self</code><a href="#method.from-11" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#247-251" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyFrozenSet%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../types/struct.PyFrozenSet.html" title="struct pyo3::types::PyFrozenSet">PyFrozenSet</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyFrozenSet%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/set.rs.html#24-29" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-83" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../types/struct.PyFrozenSet.html" title="struct pyo3::types::PyFrozenSet">PyFrozenSet</a>) -> Self</code><a href="#method.from-83" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/set.rs.html#24-29" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyFunction%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../types/struct.PyFunction.html" title="struct pyo3::types::PyFunction">PyFunction</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyFunction%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/function.rs.html#100" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-76" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../types/struct.PyFunction.html" title="struct pyo3::types::PyFunction">PyFunction</a>) -> Self</code><a href="#method.from-76" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/function.rs.html#100" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyGeneratorExit%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/struct.PyGeneratorExit.html" title="struct pyo3::exceptions::PyGeneratorExit">PyGeneratorExit</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyGeneratorExit%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#239" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-4" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/struct.PyGeneratorExit.html" title="struct pyo3::exceptions::PyGeneratorExit">PyGeneratorExit</a>) -> Self</code><a href="#method.from-4" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#239" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyIOError%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/struct.PyIOError.html" title="struct pyo3::exceptions::PyIOError">PyIOError</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyIOError%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#377" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-52" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/struct.PyIOError.html" title="struct pyo3::exceptions::PyIOError">PyIOError</a>) -> Self</code><a href="#method.from-52" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#377" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyImportError%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/struct.PyImportError.html" title="struct pyo3::exceptions::PyImportError">PyImportError</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyImportError%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#253" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-13" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/struct.PyImportError.html" title="struct pyo3::exceptions::PyImportError">PyImportError</a>) -> Self</code><a href="#method.from-13" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#253" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyIndexError%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/struct.PyIndexError.html" title="struct pyo3::exceptions::PyIndexError">PyIndexError</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyIndexError%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#261" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-15" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/struct.PyIndexError.html" title="struct pyo3::exceptions::PyIndexError">PyIndexError</a>) -> Self</code><a href="#method.from-15" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#261" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyInterruptedError%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/struct.PyInterruptedError.html" title="struct pyo3::exceptions::PyInterruptedError">PyInterruptedError</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyInterruptedError%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#355" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-45" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/struct.PyInterruptedError.html" title="struct pyo3::exceptions::PyInterruptedError">PyInterruptedError</a>) -> Self</code><a href="#method.from-45" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#355" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyIsADirectoryError%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/struct.PyIsADirectoryError.html" title="struct pyo3::exceptions::PyIsADirectoryError">PyIsADirectoryError</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyIsADirectoryError%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#356-360" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-46" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/struct.PyIsADirectoryError.html" title="struct pyo3::exceptions::PyIsADirectoryError">PyIsADirectoryError</a>) -> Self</code><a href="#method.from-46" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#356-360" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyIterator%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../types/struct.PyIterator.html" title="struct pyo3::types::PyIterator">PyIterator</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyIterator%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/iterator.rs.html#29" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-77" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../types/struct.PyIterator.html" title="struct pyo3::types::PyIterator">PyIterator</a>) -> Self</code><a href="#method.from-77" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/iterator.rs.html#29" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyKeyError%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/struct.PyKeyError.html" title="struct pyo3::exceptions::PyKeyError">PyKeyError</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyKeyError%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#262" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-16" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/struct.PyKeyError.html" title="struct pyo3::exceptions::PyKeyError">PyKeyError</a>) -> Self</code><a href="#method.from-16" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#262" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyKeyboardInterrupt%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/struct.PyKeyboardInterrupt.html" title="struct pyo3::exceptions::PyKeyboardInterrupt">PyKeyboardInterrupt</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyKeyboardInterrupt%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#263-267" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-17" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/struct.PyKeyboardInterrupt.html" title="struct pyo3::exceptions::PyKeyboardInterrupt">PyKeyboardInterrupt</a>) -> Self</code><a href="#method.from-17" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#263-267" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyList%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../types/struct.PyList.html" title="struct pyo3::types::PyList">PyList</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyList%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/list.rs.html#16" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-78" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../types/struct.PyList.html" title="struct pyo3::types::PyList">PyList</a>) -> Self</code><a href="#method.from-78" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/list.rs.html#16" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyLong%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../types/struct.PyLong.html" title="struct pyo3::types::PyLong">PyLong</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyLong%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/num.rs.html#58" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-80" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../types/struct.PyLong.html" title="struct pyo3::types::PyLong">PyLong</a>) -> Self</code><a href="#method.from-80" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/num.rs.html#58" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyLookupError%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/struct.PyLookupError.html" title="struct pyo3::exceptions::PyLookupError">PyLookupError</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyLookupError%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#241" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-6" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/struct.PyLookupError.html" title="struct pyo3::exceptions::PyLookupError">PyLookupError</a>) -> Self</code><a href="#method.from-6" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#241" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyMemoryError%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/struct.PyMemoryError.html" title="struct pyo3::exceptions::PyMemoryError">PyMemoryError</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyMemoryError%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#268" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-18" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/struct.PyMemoryError.html" title="struct pyo3::exceptions::PyMemoryError">PyMemoryError</a>) -> Self</code><a href="#method.from-18" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#268" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyModule%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="struct.PyModule.html" title="struct pyo3::prelude::PyModule">PyModule</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyModule%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/module.rs.html#23" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-79" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="struct.PyModule.html" title="struct pyo3::prelude::PyModule">PyModule</a>) -> Self</code><a href="#method.from-79" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/module.rs.html#23" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyModuleNotFoundError%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/struct.PyModuleNotFoundError.html" title="struct pyo3::exceptions::PyModuleNotFoundError">PyModuleNotFoundError</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyModuleNotFoundError%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#255-259" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-14" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/struct.PyModuleNotFoundError.html" title="struct pyo3::exceptions::PyModuleNotFoundError">PyModuleNotFoundError</a>) -> Self</code><a href="#method.from-14" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#255-259" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyNameError%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/struct.PyNameError.html" title="struct pyo3::exceptions::PyNameError">PyNameError</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyNameError%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#269" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-19" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/struct.PyNameError.html" title="struct pyo3::exceptions::PyNameError">PyNameError</a>) -> Self</code><a href="#method.from-19" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#269" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyNotADirectoryError%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/struct.PyNotADirectoryError.html" title="struct pyo3::exceptions::PyNotADirectoryError">PyNotADirectoryError</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyNotADirectoryError%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#361-365" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-47" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/struct.PyNotADirectoryError.html" title="struct pyo3::exceptions::PyNotADirectoryError">PyNotADirectoryError</a>) -> Self</code><a href="#method.from-47" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#361-365" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyNotImplementedError%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/struct.PyNotImplementedError.html" title="struct pyo3::exceptions::PyNotImplementedError">PyNotImplementedError</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyNotImplementedError%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#273-277" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-23" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/struct.PyNotImplementedError.html" title="struct pyo3::exceptions::PyNotImplementedError">PyNotImplementedError</a>) -> Self</code><a href="#method.from-23" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#273-277" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyOSError%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/struct.PyOSError.html" title="struct pyo3::exceptions::PyOSError">PyOSError</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyOSError%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#252" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-12" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/struct.PyOSError.html" title="struct pyo3::exceptions::PyOSError">PyOSError</a>) -> Self</code><a href="#method.from-12" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#252" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyOverflowError%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/struct.PyOverflowError.html" title="struct pyo3::exceptions::PyOverflowError">PyOverflowError</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyOverflowError%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#270" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-20" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/struct.PyOverflowError.html" title="struct pyo3::exceptions::PyOverflowError">PyOverflowError</a>) -> Self</code><a href="#method.from-20" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#270" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyPermissionError%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/struct.PyPermissionError.html" title="struct pyo3::exceptions::PyPermissionError">PyPermissionError</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyPermissionError%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#366" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-48" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/struct.PyPermissionError.html" title="struct pyo3::exceptions::PyPermissionError">PyPermissionError</a>) -> Self</code><a href="#method.from-48" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#366" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyProcessLookupError%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/struct.PyProcessLookupError.html" title="struct pyo3::exceptions::PyProcessLookupError">PyProcessLookupError</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyProcessLookupError%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#367-371" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-49" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/struct.PyProcessLookupError.html" title="struct pyo3::exceptions::PyProcessLookupError">PyProcessLookupError</a>) -> Self</code><a href="#method.from-49" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#367-371" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyRecursionError%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/struct.PyRecursionError.html" title="struct pyo3::exceptions::PyRecursionError">PyRecursionError</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyRecursionError%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#272" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-22" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/struct.PyRecursionError.html" title="struct pyo3::exceptions::PyRecursionError">PyRecursionError</a>) -> Self</code><a href="#method.from-22" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#272" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyReferenceError%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/struct.PyReferenceError.html" title="struct pyo3::exceptions::PyReferenceError">PyReferenceError</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyReferenceError%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#284" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-25" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/struct.PyReferenceError.html" title="struct pyo3::exceptions::PyReferenceError">PyReferenceError</a>) -> Self</code><a href="#method.from-25" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#284" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyRuntimeError%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/struct.PyRuntimeError.html" title="struct pyo3::exceptions::PyRuntimeError">PyRuntimeError</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyRuntimeError%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#271" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-21" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/struct.PyRuntimeError.html" title="struct pyo3::exceptions::PyRuntimeError">PyRuntimeError</a>) -> Self</code><a href="#method.from-21" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#271" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PySequence%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../types/struct.PySequence.html" title="struct pyo3::types::PySequence">PySequence</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PySequence%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/sequence.rs.html#14" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-81" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../types/struct.PySequence.html" title="struct pyo3::types::PySequence">PySequence</a>) -> Self</code><a href="#method.from-81" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/sequence.rs.html#14" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PySet%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../types/struct.PySet.html" title="struct pyo3::types::PySet">PySet</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PySet%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/set.rs.html#23" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-82" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../types/struct.PySet.html" title="struct pyo3::types::PySet">PySet</a>) -> Self</code><a href="#method.from-82" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/set.rs.html#23" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PySlice%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../types/struct.PySlice.html" title="struct pyo3::types::PySlice">PySlice</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PySlice%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/slice.rs.html#15-20" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-84" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../types/struct.PySlice.html" title="struct pyo3::types::PySlice">PySlice</a>) -> Self</code><a href="#method.from-84" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/slice.rs.html#15-20" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyStopAsyncIteration%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/struct.PyStopAsyncIteration.html" title="struct pyo3::exceptions::PyStopAsyncIteration">PyStopAsyncIteration</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyStopAsyncIteration%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#228-232" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-2" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/struct.PyStopAsyncIteration.html" title="struct pyo3::exceptions::PyStopAsyncIteration">PyStopAsyncIteration</a>) -> Self</code><a href="#method.from-2" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#228-232" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyStopIteration%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/struct.PyStopIteration.html" title="struct pyo3::exceptions::PyStopIteration">PyStopIteration</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyStopIteration%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#233-238" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-3" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/struct.PyStopIteration.html" title="struct pyo3::exceptions::PyStopIteration">PyStopIteration</a>) -> Self</code><a href="#method.from-3" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#233-238" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyString%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../types/struct.PyString.html" title="struct pyo3::types::PyString">PyString</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyString%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/string.rs.html#18" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-85" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../types/struct.PyString.html" title="struct pyo3::types::PyString">PyString</a>) -> Self</code><a href="#method.from-85" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/string.rs.html#18" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PySyntaxError%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/struct.PySyntaxError.html" title="struct pyo3::exceptions::PySyntaxError">PySyntaxError</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PySyntaxError%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#278-283" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-24" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/struct.PySyntaxError.html" title="struct pyo3::exceptions::PySyntaxError">PySyntaxError</a>) -> Self</code><a href="#method.from-24" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#278-283" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PySystemError%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/struct.PySystemError.html" title="struct pyo3::exceptions::PySystemError">PySystemError</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PySystemError%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#285" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-26" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/struct.PySystemError.html" title="struct pyo3::exceptions::PySystemError">PySystemError</a>) -> Self</code><a href="#method.from-26" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#285" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PySystemExit%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/struct.PySystemExit.html" title="struct pyo3::exceptions::PySystemExit">PySystemExit</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PySystemExit%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#286-291" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-27" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/struct.PySystemExit.html" title="struct pyo3::exceptions::PySystemExit">PySystemExit</a>) -> Self</code><a href="#method.from-27" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#286-291" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyTime%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../types/struct.PyTime.html" title="struct pyo3::types::PyTime">PyTime</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyTime%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/datetime.rs.html#267-273" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-70" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../types/struct.PyTime.html" title="struct pyo3::types::PyTime">PyTime</a>) -> Self</code><a href="#method.from-70" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/datetime.rs.html#267-273" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyTimeoutError%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/struct.PyTimeoutError.html" title="struct pyo3::exceptions::PyTimeoutError">PyTimeoutError</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyTimeoutError%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#372" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-50" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/struct.PyTimeoutError.html" title="struct pyo3::exceptions::PyTimeoutError">PyTimeoutError</a>) -> Self</code><a href="#method.from-50" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#372" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyTuple%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../types/struct.PyTuple.html" title="struct pyo3::types::PyTuple">PyTuple</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyTuple%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/tuple.rs.html#15" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-86" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../types/struct.PyTuple.html" title="struct pyo3::types::PyTuple">PyTuple</a>) -> Self</code><a href="#method.from-86" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/tuple.rs.html#15" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyType%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../types/struct.PyType.html" title="struct pyo3::types::PyType">PyType</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyType%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/typeobject.rs.html#14" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-87" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../types/struct.PyType.html" title="struct pyo3::types::PyType">PyType</a>) -> Self</code><a href="#method.from-87" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/typeobject.rs.html#14" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyTypeError%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/struct.PyTypeError.html" title="struct pyo3::exceptions::PyTypeError">PyTypeError</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyTypeError%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#292" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-28" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/struct.PyTypeError.html" title="struct pyo3::exceptions::PyTypeError">PyTypeError</a>) -> Self</code><a href="#method.from-28" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#292" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyTzInfo%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../types/struct.PyTzInfo.html" title="struct pyo3::types::PyTzInfo">PyTzInfo</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyTzInfo%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/datetime.rs.html#351-357" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-71" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../types/struct.PyTzInfo.html" title="struct pyo3::types::PyTzInfo">PyTzInfo</a>) -> Self</code><a href="#method.from-71" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/datetime.rs.html#351-357" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyUnboundLocalError%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/struct.PyUnboundLocalError.html" title="struct pyo3::exceptions::PyUnboundLocalError">PyUnboundLocalError</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyUnboundLocalError%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#293-297" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-29" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/struct.PyUnboundLocalError.html" title="struct pyo3::exceptions::PyUnboundLocalError">PyUnboundLocalError</a>) -> Self</code><a href="#method.from-29" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#293-297" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyUnicodeDecodeError%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/struct.PyUnicodeDecodeError.html" title="struct pyo3::exceptions::PyUnicodeDecodeError">PyUnicodeDecodeError</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyUnicodeDecodeError%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#304-308" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-31" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/struct.PyUnicodeDecodeError.html" title="struct pyo3::exceptions::PyUnicodeDecodeError">PyUnicodeDecodeError</a>) -> Self</code><a href="#method.from-31" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#304-308" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyUnicodeEncodeError%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/struct.PyUnicodeEncodeError.html" title="struct pyo3::exceptions::PyUnicodeEncodeError">PyUnicodeEncodeError</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyUnicodeEncodeError%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#309-313" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-32" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/struct.PyUnicodeEncodeError.html" title="struct pyo3::exceptions::PyUnicodeEncodeError">PyUnicodeEncodeError</a>) -> Self</code><a href="#method.from-32" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#309-313" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyUnicodeError%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/struct.PyUnicodeError.html" title="struct pyo3::exceptions::PyUnicodeError">PyUnicodeError</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyUnicodeError%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#298-303" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-30" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/struct.PyUnicodeError.html" title="struct pyo3::exceptions::PyUnicodeError">PyUnicodeError</a>) -> Self</code><a href="#method.from-30" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#298-303" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyUnicodeTranslateError%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/struct.PyUnicodeTranslateError.html" title="struct pyo3::exceptions::PyUnicodeTranslateError">PyUnicodeTranslateError</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyUnicodeTranslateError%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#314-318" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-33" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/struct.PyUnicodeTranslateError.html" title="struct pyo3::exceptions::PyUnicodeTranslateError">PyUnicodeTranslateError</a>) -> Self</code><a href="#method.from-33" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#314-318" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyValueError%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/struct.PyValueError.html" title="struct pyo3::exceptions::PyValueError">PyValueError</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyValueError%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#319" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-34" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/struct.PyValueError.html" title="struct pyo3::exceptions::PyValueError">PyValueError</a>) -> Self</code><a href="#method.from-34" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#319" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20PyZeroDivisionError%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/struct.PyZeroDivisionError.html" title="struct pyo3::exceptions::PyZeroDivisionError">PyZeroDivisionError</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20PyZeroDivisionError%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#320-324" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-35" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/struct.PyZeroDivisionError.html" title="struct pyo3::exceptions::PyZeroDivisionError">PyZeroDivisionError</a>) -> Self</code><a href="#method.from-35" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#320-324" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20QueueEmpty%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/asyncio/struct.QueueEmpty.html" title="struct pyo3::exceptions::asyncio::QueueEmpty">QueueEmpty</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20QueueEmpty%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#424" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-58" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/asyncio/struct.QueueEmpty.html" title="struct pyo3::exceptions::asyncio::QueueEmpty">QueueEmpty</a>) -> Self</code><a href="#method.from-58" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#424" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20QueueFull%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/asyncio/struct.QueueFull.html" title="struct pyo3::exceptions::asyncio::QueueFull">QueueFull</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20QueueFull%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#425" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-59" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/asyncio/struct.QueueFull.html" title="struct pyo3::exceptions::asyncio::QueueFull">QueueFull</a>) -> Self</code><a href="#method.from-59" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#425" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20TimeoutError%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/asyncio/struct.TimeoutError.html" title="struct pyo3::exceptions::asyncio::TimeoutError">TimeoutError</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20TimeoutError%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#421" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-55" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/asyncio/struct.TimeoutError.html" title="struct pyo3::exceptions::asyncio::TimeoutError">TimeoutError</a>) -> Self</code><a href="#method.from-55" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#421" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20gaierror%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/socket/struct.gaierror.html" title="struct pyo3::exceptions::socket::gaierror">gaierror</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20gaierror%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#431" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-61" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/socket/struct.gaierror.html" title="struct pyo3::exceptions::socket::gaierror">gaierror</a>) -> Self</code><a href="#method.from-61" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#431" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20herror%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/socket/struct.herror.html" title="struct pyo3::exceptions::socket::herror">herror</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20herror%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#430" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-60" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/socket/struct.herror.html" title="struct pyo3::exceptions::socket::herror">herror</a>) -> Self</code><a href="#method.from-60" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#430" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3C%26%27a%20timeout%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../exceptions/socket/struct.timeout.html" title="struct pyo3::exceptions::socket::timeout">timeout</a>> for &'a <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-From%3C%26%27a%20timeout%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#432" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-62" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &'a <a class="struct" href="../exceptions/socket/struct.timeout.html" title="struct pyo3::exceptions::socket::timeout">timeout</a>) -> Self</code><a href="#method.from-62" class="anchor"></a><a class="srclink" href="../../src/pyo3/exceptions.rs.html#432" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-FromPyObject%3C%27py%3E" class="impl"><code class="in-band">impl<'py> <a class="trait" href="../conversion/trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py> for &'py <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-FromPyObject%3C%27py%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/any.rs.html#59" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.extract-1" class="method hidden trait-impl"><code>fn <a href="../conversion/trait.FromPyObject.html#tymethod.extract" class="fnname">extract</a>(obj: &'py <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>) -> <a class="type" href="type.PyResult.html" title="type pyo3::prelude::PyResult">PyResult</a><Self></code><a href="#method.extract-1" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/any.rs.html#59" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Extracts <code>Self</code> from the source <code>PyObject</code>.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-PartialEq%3CPyAny%3E" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-PartialEq%3CPyAny%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/any.rs.html#61" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.eq" class="method hidden trait-impl"><code>fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq" class="fnname">eq</a>(&self, o: &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a href="#method.eq" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/any.rs.html#61" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used
|
||
by <code>==</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
|
||
</div><h4 id="method.ne" class="method hidden trait-impl"><code><div class="code-attribute">#[must_use]</div>pub fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne" class="fnname">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Rhs) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a href="#method.ne" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#213" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>!=</code>.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-PyLayout%3CPyAny%3E" class="impl"><code class="in-band">impl <a class="trait" href="../type_object/trait.PyLayout.html" title="trait pyo3::type_object::PyLayout">PyLayout</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../ffi/struct.PyObject.html" title="struct pyo3::ffi::PyObject">PyObject</a></code><a href="#impl-PyLayout%3CPyAny%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/any.rs.html#48" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="associatedconstant.IS_NATIVE_TYPE" class="associatedconstant hidden trait-impl"><code>const <a href="../type_object/trait.PyLayout.html#associatedconstant.IS_NATIVE_TYPE" class="constant"><b>IS_NATIVE_TYPE</b></a>: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a href="#associatedconstant.IS_NATIVE_TYPE" class="anchor"></a><a class="srclink" href="../../src/pyo3/type_object.rs.html#19" title="goto source code">[src]</a></h4><h4 id="method.get_super" class="method hidden trait-impl"><code>fn <a href="../type_object/trait.PyLayout.html#method.get_super" class="fnname">get_super</a>(&mut self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&mut T::<a class="type" href="../type_object/trait.PyTypeInfo.html#associatedtype.BaseLayout" title="type pyo3::type_object::PyTypeInfo::BaseLayout">BaseLayout</a>></code><a href="#method.get_super" class="anchor"></a><a class="srclink" href="../../src/pyo3/type_object.rs.html#20-22" title="goto source code">[src]</a></h4><h4 id="method.py_init" class="method hidden trait-impl"><code>fn <a href="../type_object/trait.PyLayout.html#method.py_init" class="fnname">py_init</a>(&mut self, _value: T)</code><a href="#method.py_init" class="anchor"></a><a class="srclink" href="../../src/pyo3/type_object.rs.html#23" title="goto source code">[src]</a></h4><h4 id="method.py_drop" class="method hidden trait-impl"><code>unsafe fn <a href="../type_object/trait.PyLayout.html#method.py_drop" class="fnname">py_drop</a>(&mut self, _py: <a class="struct" href="struct.Python.html" title="struct pyo3::prelude::Python">Python</a><'_>)</code><a href="#method.py_drop" class="anchor"></a><a class="srclink" href="../../src/pyo3/type_object.rs.html#24" title="goto source code">[src]</a></h4></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-PyNativeType" class="impl"><code class="in-band">impl <a class="trait" href="../trait.PyNativeType.html" title="trait pyo3::PyNativeType">PyNativeType</a> for <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-PyNativeType" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/any.rs.html#61" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.py" class="method hidden trait-impl"><code>fn <a href="../trait.PyNativeType.html#method.py" class="fnname">py</a>(&self) -> <a class="struct" href="struct.Python.html" title="struct pyo3::prelude::Python">Python</a><'_></code><a href="#method.py" class="anchor"></a><a class="srclink" href="../../src/pyo3/instance.rs.html#22-24" title="goto source code">[src]</a></h4><h4 id="method.unchecked_downcast" class="method hidden trait-impl"><code>unsafe fn <a href="../trait.PyNativeType.html#method.unchecked_downcast" class="fnname">unchecked_downcast</a>(obj: &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self</code><a href="#method.unchecked_downcast" class="anchor"></a><a class="srclink" href="../../src/pyo3/instance.rs.html#31-33" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Cast <code>&PyAny</code> to <code>&Self</code> without no type checking. <a href="../trait.PyNativeType.html#method.unchecked_downcast">Read more</a></p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-PyTryInto%3CU%3E" class="impl"><code class="in-band">impl<U> <a class="trait" href="../conversion/trait.PyTryInto.html" title="trait pyo3::conversion::PyTryInto">PyTryInto</a><U> for <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a> <span class="where fmt-newline">where<br> U: for<'v> <a class="trait" href="../conversion/trait.PyTryFrom.html" title="trait pyo3::conversion::PyTryFrom">PyTryFrom</a><'v>, </span></code><a href="#impl-PyTryInto%3CU%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/conversion.rs.html#311-321" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.try_into" class="method hidden trait-impl"><code>fn <a href="../conversion/trait.PyTryInto.html#tymethod.try_into" class="fnname">try_into</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>U, <a class="struct" href="../struct.PyDowncastError.html" title="struct pyo3::PyDowncastError">PyDowncastError</a><'_>></code><a href="#method.try_into" class="anchor"></a><a class="srclink" href="../../src/pyo3/conversion.rs.html#315-317" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Cast from PyObject to a concrete Python object type.</p>
|
||
</div><h4 id="method.try_into_exact" class="method hidden trait-impl"><code>fn <a href="../conversion/trait.PyTryInto.html#tymethod.try_into_exact" class="fnname">try_into_exact</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>U, <a class="struct" href="../struct.PyDowncastError.html" title="struct pyo3::PyDowncastError">PyDowncastError</a><'_>></code><a href="#method.try_into_exact" class="anchor"></a><a class="srclink" href="../../src/pyo3/conversion.rs.html#318-320" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Cast from PyObject to a concrete Python object type. With exact type check.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-PyTypeInfo" class="impl"><code class="in-band">impl <a class="trait" href="../type_object/trait.PyTypeInfo.html" title="trait pyo3::type_object::PyTypeInfo">PyTypeInfo</a> for <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-PyTypeInfo" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/any.rs.html#51-57" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="associatedtype.Type" class="type trait-impl"><code>type <a href="../type_object/trait.PyTypeInfo.html#associatedtype.Type" class="type">Type</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></code><a href="#associatedtype.Type" class="anchor"></a></h4><div class='docblock'><p>Type of objects to store in PyObject struct</p>
|
||
</div><h4 id="associatedtype.BaseType" class="type trait-impl"><code>type <a href="../type_object/trait.PyTypeInfo.html#associatedtype.BaseType" class="type">BaseType</a> = <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#associatedtype.BaseType" class="anchor"></a></h4><div class='docblock'><p>Base class</p>
|
||
</div><h4 id="associatedtype.Layout" class="type trait-impl"><code>type <a href="../type_object/trait.PyTypeInfo.html#associatedtype.Layout" class="type">Layout</a> = <a class="struct" href="../ffi/struct.PyObject.html" title="struct pyo3::ffi::PyObject">PyObject</a></code><a href="#associatedtype.Layout" class="anchor"></a></h4><div class='docblock'><p>Layout</p>
|
||
</div><h4 id="associatedtype.BaseLayout" class="type trait-impl"><code>type <a href="../type_object/trait.PyTypeInfo.html#associatedtype.BaseLayout" class="type">BaseLayout</a> = <a class="struct" href="../ffi/struct.PyObject.html" title="struct pyo3::ffi::PyObject">PyObject</a></code><a href="#associatedtype.BaseLayout" class="anchor"></a></h4><div class='docblock'><p>Layout of Basetype.</p>
|
||
</div><h4 id="associatedtype.Initializer" class="type trait-impl"><code>type <a href="../type_object/trait.PyTypeInfo.html#associatedtype.Initializer" class="type">Initializer</a> = <a class="struct" href="../pyclass_init/struct.PyNativeTypeInitializer.html" title="struct pyo3::pyclass_init::PyNativeTypeInitializer">PyNativeTypeInitializer</a><Self></code><a href="#associatedtype.Initializer" class="anchor"></a></h4><div class='docblock'><p>Initializer for layout</p>
|
||
</div><h4 id="associatedtype.AsRefTarget" class="type trait-impl"><code>type <a href="../type_object/trait.PyTypeInfo.html#associatedtype.AsRefTarget" class="type">AsRefTarget</a> = Self</code><a href="#associatedtype.AsRefTarget" class="anchor"></a></h4><div class='docblock'><p>Utility type to make Py::as_ref work</p>
|
||
</div><h4 id="associatedconstant.NAME" class="associatedconstant hidden trait-impl"><code>const <a href="../type_object/trait.PyTypeInfo.html#associatedconstant.NAME" class="constant"><b>NAME</b></a>: &'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a></code><a href="#associatedconstant.NAME" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/any.rs.html#51-57" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Class name</p>
|
||
</div><h4 id="associatedconstant.MODULE" class="associatedconstant hidden trait-impl"><code>const <a href="../type_object/trait.PyTypeInfo.html#associatedconstant.MODULE" class="constant"><b>MODULE</b></a>: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>></code><a href="#associatedconstant.MODULE" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/any.rs.html#51-57" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Module name, if any</p>
|
||
</div><h4 id="method.type_object_raw" class="method hidden trait-impl"><code>fn <a href="../type_object/trait.PyTypeInfo.html#tymethod.type_object_raw" class="fnname">type_object_raw</a>(_py: <a class="struct" href="struct.Python.html" title="struct pyo3::prelude::Python">Python</a><'_>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="struct" href="../ffi/struct.PyTypeObject.html" title="struct pyo3::ffi::PyTypeObject">PyTypeObject</a></code><a href="#method.type_object_raw" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/any.rs.html#51-57" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>PyTypeObject instance for this type.</p>
|
||
</div><h4 id="method.is_type_of" class="method hidden trait-impl"><code>fn <a href="../type_object/trait.PyTypeInfo.html#method.is_type_of" class="fnname">is_type_of</a>(ptr: &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a href="#method.is_type_of" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/any.rs.html#51-57" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Checks if <code>object</code> is an instance of this type or a subclass of this type.</p>
|
||
</div><h4 id="associatedconstant.DESCRIPTION" class="associatedconstant hidden trait-impl"><code>const <a href="../type_object/trait.PyTypeInfo.html#associatedconstant.DESCRIPTION" class="constant"><b>DESCRIPTION</b></a>: &'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a></code><a href="#associatedconstant.DESCRIPTION" class="anchor"></a><a class="srclink" href="../../src/pyo3/type_object.rs.html#84" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Class doc string</p>
|
||
</div><h4 id="associatedconstant.FLAGS" class="associatedconstant hidden trait-impl"><code>const <a href="../type_object/trait.PyTypeInfo.html#associatedconstant.FLAGS" class="constant"><b>FLAGS</b></a>: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code><a href="#associatedconstant.FLAGS" class="anchor"></a><a class="srclink" href="../../src/pyo3/type_object.rs.html#87" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Type flags (ie PY_TYPE_FLAG_GC, PY_TYPE_FLAG_WEAKREF)</p>
|
||
</div><h4 id="method.is_exact_type_of" class="method hidden trait-impl"><code>fn <a href="../type_object/trait.PyTypeInfo.html#method.is_exact_type_of" class="fnname">is_exact_type_of</a>(object: &<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a href="#method.is_exact_type_of" class="anchor"></a><a class="srclink" href="../../src/pyo3/type_object.rs.html#113-115" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Checks if <code>object</code> is an instance of this type.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-ToPyObject" class="impl"><code class="in-band">impl <a class="trait" href="../conversion/trait.ToPyObject.html" title="trait pyo3::conversion::ToPyObject">ToPyObject</a> for <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-ToPyObject" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/any.rs.html#61" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.to_object" class="method hidden trait-impl"><code>fn <a href="../conversion/trait.ToPyObject.html#tymethod.to_object" class="fnname">to_object</a>(&self, py: <a class="struct" href="struct.Python.html" title="struct pyo3::prelude::Python">Python</a><'_>) -> <a class="type" href="type.PyObject.html" title="type pyo3::prelude::PyObject">PyObject</a></code><a href="#method.to_object" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/any.rs.html#61" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Converts self into a Python object.</p>
|
||
</div></div></details><h3 id="impl-PySizedLayout%3CPyAny%3E" class="impl"><code class="in-band">impl <a class="trait" href="../type_object/trait.PySizedLayout.html" title="trait pyo3::type_object::PySizedLayout">PySizedLayout</a><<a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>> for <a class="struct" href="../ffi/struct.PyObject.html" title="struct pyo3::ffi::PyObject">PyObject</a></code><a href="#impl-PySizedLayout%3CPyAny%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/types/any.rs.html#49" title="goto source code">[src]</a></h3></div><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor"></a></h2><div id="synthetic-implementations-list"><h3 id="impl-RefUnwindSafe" class="impl"><code class="in-band">impl !<a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-RefUnwindSafe" class="anchor"></a></h3><h3 id="impl-Send" class="impl"><code class="in-band">impl !<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-Send" class="anchor"></a></h3><h3 id="impl-Sync" class="impl"><code class="in-band">impl !<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-Sync" class="anchor"></a></h3><h3 id="impl-Unpin" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-Unpin" class="anchor"></a></h3><h3 id="impl-UnwindSafe" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a href="#impl-UnwindSafe" class="anchor"></a></h3></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-Any" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-Any" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#131-135" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.type_id" class="method hidden trait-impl"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a href="#method.type_id" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#132" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-Borrow%3CT%3E" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-Borrow%3CT%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#208-213" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.borrow" class="method hidden trait-impl"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow" class="fnname">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><a href="#method.borrow" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#210" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-BorrowMut%3CT%3E" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-BorrowMut%3CT%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#216-220" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.borrow_mut" class="method hidden trait-impl"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fnname">borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T</code><a href="#method.borrow_mut" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#217" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-From%3CT%3E" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</code><a href="#impl-From%3CT%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#544-548" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from-88" class="method hidden trait-impl"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(t: T) -> T</code><a href="#method.from-88" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#545" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-FromPyPointer%3C%27p%3E" class="impl"><code class="in-band">impl<'p, T> <a class="trait" href="../conversion/trait.FromPyPointer.html" title="trait pyo3::conversion::FromPyPointer">FromPyPointer</a><'p> for T <span class="where fmt-newline">where<br> T: 'p + <a class="trait" href="../trait.PyNativeType.html" title="trait pyo3::PyNativeType">PyNativeType</a>, </span></code><a href="#impl-FromPyPointer%3C%27p%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/conversion.rs.html#462-476" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.from_owned_ptr_or_opt" class="method hidden trait-impl"><code>pub unsafe fn <a href="../conversion/trait.FromPyPointer.html#tymethod.from_owned_ptr_or_opt" class="fnname">from_owned_ptr_or_opt</a>(<a class="struct" href="struct.Python.html" title="struct pyo3::prelude::Python">Python</a><'p>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="struct" href="../ffi/struct.PyObject.html" title="struct pyo3::ffi::PyObject">PyObject</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'p </a>T></code><a href="#method.from_owned_ptr_or_opt" class="anchor"></a><a class="srclink" href="../../src/pyo3/conversion.rs.html#466-469" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Convert from an arbitrary <code>PyObject</code>. <a href="../conversion/trait.FromPyPointer.html#tymethod.from_owned_ptr_or_opt">Read more</a></p>
|
||
</div><h4 id="method.from_borrowed_ptr_or_opt" class="method hidden trait-impl"><code>pub unsafe fn <a href="../conversion/trait.FromPyPointer.html#tymethod.from_borrowed_ptr_or_opt" class="fnname">from_borrowed_ptr_or_opt</a>(<br> <a class="struct" href="struct.Python.html" title="struct pyo3::prelude::Python">Python</a><'p>, <br> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="struct" href="../ffi/struct.PyObject.html" title="struct pyo3::ffi::PyObject">PyObject</a><br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'p </a>T></code><a href="#method.from_borrowed_ptr_or_opt" class="anchor"></a><a class="srclink" href="../../src/pyo3/conversion.rs.html#470-475" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Convert from an arbitrary borrowed <code>PyObject</code>. <a href="../conversion/trait.FromPyPointer.html#tymethod.from_borrowed_ptr_or_opt">Read more</a></p>
|
||
</div><h4 id="method.from_owned_ptr_or_panic" class="method hidden trait-impl"><code>unsafe fn <a href="../conversion/trait.FromPyPointer.html#method.from_owned_ptr_or_panic" class="fnname">from_owned_ptr_or_panic</a>(<br> py: <a class="struct" href="struct.Python.html" title="struct pyo3::prelude::Python">Python</a><'p>, <br> ptr: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="struct" href="../ffi/struct.PyObject.html" title="struct pyo3::ffi::PyObject">PyObject</a><br>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'p </a>Self</code><a href="#method.from_owned_ptr_or_panic" class="anchor"></a><a class="srclink" href="../../src/pyo3/conversion.rs.html#407-409" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Convert from an arbitrary <code>PyObject</code> or panic. <a href="../conversion/trait.FromPyPointer.html#method.from_owned_ptr_or_panic">Read more</a></p>
|
||
</div><h4 id="method.from_owned_ptr" class="method hidden trait-impl"><code>unsafe fn <a href="../conversion/trait.FromPyPointer.html#method.from_owned_ptr" class="fnname">from_owned_ptr</a>(py: <a class="struct" href="struct.Python.html" title="struct pyo3::prelude::Python">Python</a><'p>, ptr: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="struct" href="../ffi/struct.PyObject.html" title="struct pyo3::ffi::PyObject">PyObject</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'p </a>Self</code><a href="#method.from_owned_ptr" class="anchor"></a><a class="srclink" href="../../src/pyo3/conversion.rs.html#415-417" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Convert from an arbitrary <code>PyObject</code> or panic. <a href="../conversion/trait.FromPyPointer.html#method.from_owned_ptr">Read more</a></p>
|
||
</div><h4 id="method.from_owned_ptr_or_err" class="method hidden trait-impl"><code>unsafe fn <a href="../conversion/trait.FromPyPointer.html#method.from_owned_ptr_or_err" class="fnname">from_owned_ptr_or_err</a>(<br> py: <a class="struct" href="struct.Python.html" title="struct pyo3::prelude::Python">Python</a><'p>, <br> ptr: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="struct" href="../ffi/struct.PyObject.html" title="struct pyo3::ffi::PyObject">PyObject</a><br>) -> <a class="type" href="type.PyResult.html" title="type pyo3::prelude::PyResult">PyResult</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'p </a>Self></code><a href="#method.from_owned_ptr_or_err" class="anchor"></a><a class="srclink" href="../../src/pyo3/conversion.rs.html#423-425" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Convert from an arbitrary <code>PyObject</code>. <a href="../conversion/trait.FromPyPointer.html#method.from_owned_ptr_or_err">Read more</a></p>
|
||
</div><h4 id="method.from_borrowed_ptr_or_panic" class="method hidden trait-impl"><code>unsafe fn <a href="../conversion/trait.FromPyPointer.html#method.from_borrowed_ptr_or_panic" class="fnname">from_borrowed_ptr_or_panic</a>(<br> py: <a class="struct" href="struct.Python.html" title="struct pyo3::prelude::Python">Python</a><'p>, <br> ptr: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="struct" href="../ffi/struct.PyObject.html" title="struct pyo3::ffi::PyObject">PyObject</a><br>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'p </a>Self</code><a href="#method.from_borrowed_ptr_or_panic" class="anchor"></a><a class="srclink" href="../../src/pyo3/conversion.rs.html#438-440" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Convert from an arbitrary borrowed <code>PyObject</code>. <a href="../conversion/trait.FromPyPointer.html#method.from_borrowed_ptr_or_panic">Read more</a></p>
|
||
</div><h4 id="method.from_borrowed_ptr" class="method hidden trait-impl"><code>unsafe fn <a href="../conversion/trait.FromPyPointer.html#method.from_borrowed_ptr" class="fnname">from_borrowed_ptr</a>(py: <a class="struct" href="struct.Python.html" title="struct pyo3::prelude::Python">Python</a><'p>, ptr: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="struct" href="../ffi/struct.PyObject.html" title="struct pyo3::ffi::PyObject">PyObject</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'p </a>Self</code><a href="#method.from_borrowed_ptr" class="anchor"></a><a class="srclink" href="../../src/pyo3/conversion.rs.html#446-448" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Convert from an arbitrary borrowed <code>PyObject</code>. <a href="../conversion/trait.FromPyPointer.html#method.from_borrowed_ptr">Read more</a></p>
|
||
</div><h4 id="method.from_borrowed_ptr_or_err" class="method hidden trait-impl"><code>unsafe fn <a href="../conversion/trait.FromPyPointer.html#method.from_borrowed_ptr_or_err" class="fnname">from_borrowed_ptr_or_err</a>(<br> py: <a class="struct" href="struct.Python.html" title="struct pyo3::prelude::Python">Python</a><'p>, <br> ptr: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="struct" href="../ffi/struct.PyObject.html" title="struct pyo3::ffi::PyObject">PyObject</a><br>) -> <a class="type" href="type.PyResult.html" title="type pyo3::prelude::PyResult">PyResult</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'p </a>Self></code><a href="#method.from_borrowed_ptr_or_err" class="anchor"></a><a class="srclink" href="../../src/pyo3/conversion.rs.html#454-459" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Convert from an arbitrary borrowed <code>PyObject</code>. <a href="../conversion/trait.FromPyPointer.html#method.from_borrowed_ptr_or_err">Read more</a></p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-Into%3CU%3E" class="impl"><code class="in-band">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>, </span></code><a href="#impl-Into%3CU%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#533-540" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.into" class="method hidden trait-impl"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into" class="fnname">into</a>(self) -> U</code><a href="#method.into" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#537" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-PyTryFrom%3C%27v%3E" class="impl"><code class="in-band">impl<'v, T> <a class="trait" href="../conversion/trait.PyTryFrom.html" title="trait pyo3::conversion::PyTryFrom">PyTryFrom</a><'v> for T <span class="where fmt-newline">where<br> T: <a class="trait" href="../type_object/trait.PyTypeInfo.html" title="trait pyo3::type_object::PyTypeInfo">PyTypeInfo</a> + <a class="trait" href="../trait.PyNativeType.html" title="trait pyo3::PyNativeType">PyNativeType</a>, </span></code><a href="#impl-PyTryFrom%3C%27v%3E" class="anchor"></a><a class="srclink" href="../../src/pyo3/conversion.rs.html#323-353" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.try_from" class="method hidden trait-impl"><code>pub fn <a href="../conversion/trait.PyTryFrom.html#tymethod.try_from" class="fnname">try_from</a><V>(V) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'v </a>T, <a class="struct" href="../struct.PyDowncastError.html" title="struct pyo3::PyDowncastError">PyDowncastError</a><'v>> <span class="where fmt-newline">where<br> V: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><&'v <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>>, </span></code><a href="#method.try_from" class="anchor"></a><a class="srclink" href="../../src/pyo3/conversion.rs.html#327-336" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Cast from a concrete Python object type to PyObject.</p>
|
||
</div><h4 id="method.try_from_exact" class="method hidden trait-impl"><code>pub fn <a href="../conversion/trait.PyTryFrom.html#tymethod.try_from_exact" class="fnname">try_from_exact</a><V>(V) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'v </a>T, <a class="struct" href="../struct.PyDowncastError.html" title="struct pyo3::PyDowncastError">PyDowncastError</a><'v>> <span class="where fmt-newline">where<br> V: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><&'v <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>>, </span></code><a href="#method.try_from_exact" class="anchor"></a><a class="srclink" href="../../src/pyo3/conversion.rs.html#338-347" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Cast from a concrete Python object type to PyObject. With exact type check.</p>
|
||
</div><h4 id="method.try_from_unchecked" class="method hidden trait-impl"><code>pub unsafe fn <a href="../conversion/trait.PyTryFrom.html#tymethod.try_from_unchecked" class="fnname">try_from_unchecked</a><V>(V) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'v </a>T <span class="where fmt-newline">where<br> V: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><&'v <a class="struct" href="struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>>, </span></code><a href="#method.try_from_unchecked" class="anchor"></a><a class="srclink" href="../../src/pyo3/conversion.rs.html#350-352" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Cast a PyAny to a specific type of PyObject. The caller must
|
||
have already verified the reference is for this type. <a href="../conversion/trait.PyTryFrom.html#tymethod.try_from_unchecked">Read more</a></p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-PyTypeObject" class="impl"><code class="in-band">impl<T> <a class="trait" href="../type_object/trait.PyTypeObject.html" title="trait pyo3::type_object::PyTypeObject">PyTypeObject</a> for T <span class="where fmt-newline">where<br> T: <a class="trait" href="../type_object/trait.PyTypeInfo.html" title="trait pyo3::type_object::PyTypeInfo">PyTypeInfo</a>, </span></code><a href="#impl-PyTypeObject" class="anchor"></a><a class="srclink" href="../../src/pyo3/type_object.rs.html#129-136" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.type_object" class="method hidden trait-impl"><code>pub fn <a href="../type_object/trait.PyTypeObject.html#tymethod.type_object" class="fnname">type_object</a>(<a class="struct" href="struct.Python.html" title="struct pyo3::prelude::Python">Python</a><'_>) -> &<a class="struct" href="../types/struct.PyType.html" title="struct pyo3::types::PyType">PyType</a></code><a href="#method.type_object" class="anchor"></a><a class="srclink" href="../../src/pyo3/type_object.rs.html#133-135" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Returns the safe abstraction over the type object.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-ToBorrowedObject" class="impl"><code class="in-band">impl<T> <a class="trait" href="../conversion/trait.ToBorrowedObject.html" title="trait pyo3::conversion::ToBorrowedObject">ToBorrowedObject</a> for T <span class="where fmt-newline">where<br> T: <a class="trait" href="../conversion/trait.ToPyObject.html" title="trait pyo3::conversion::ToPyObject">ToPyObject</a>, </span></code><a href="#impl-ToBorrowedObject" class="anchor"></a><a class="srclink" href="../../src/pyo3/conversion.rs.html#105-121" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.with_borrowed_ptr" class="method hidden trait-impl"><code>fn <a href="../conversion/trait.ToBorrowedObject.html#method.with_borrowed_ptr" class="fnname">with_borrowed_ptr</a><F, R>(&self, py: <a class="struct" href="struct.Python.html" title="struct pyo3::prelude::Python">Python</a><'_>, f: F) -> R <span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="struct" href="../ffi/struct.PyObject.html" title="struct pyo3::ffi::PyObject">PyObject</a>) -> R, </span></code><a href="#method.with_borrowed_ptr" class="anchor"></a><a class="srclink" href="../../src/pyo3/conversion.rs.html#92-102" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Converts self into a Python object and calls the specified closure
|
||
on the native FFI pointer underlying the Python object. <a href="../conversion/trait.ToBorrowedObject.html#method.with_borrowed_ptr">Read more</a></p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-ToString" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/alloc/string/trait.ToString.html" title="trait alloc::string::ToString">ToString</a> for T <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-ToString" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/alloc/string.rs.html#2268-2281" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.to_string" class="method hidden trait-impl"><code>pub default fn <a href="https://doc.rust-lang.org/nightly/alloc/string/trait.ToString.html#tymethod.to_string" class="fnname">to_string</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code><a href="#method.to_string" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/alloc/string.rs.html#2274" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Converts the given value to a <code>String</code>. <a href="https://doc.rust-lang.org/nightly/alloc/string/trait.ToString.html#tymethod.to_string">Read more</a></p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-TryFrom%3CU%3E" class="impl"><code class="in-band">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>, </span></code><a href="#impl-TryFrom%3CU%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#581-590" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="associatedtype.Error" class="type trait-impl"><code>type <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" class="type">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></code><a href="#associatedtype.Error" class="anchor"></a></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||
</div><h4 id="method.try_from-1" class="method hidden trait-impl"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from" class="fnname">try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a href="#method.try_from-1" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#587" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-TryInto%3CU%3E" class="impl"><code class="in-band">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>, </span></code><a href="#impl-TryInto%3CU%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#567-576" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="associatedtype.Error-1" class="type trait-impl"><code>type <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error" class="type">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></code><a href="#associatedtype.Error-1" class="anchor"></a></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||
</div><h4 id="method.try_into-1" class="method hidden trait-impl"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into" class="fnname">try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a href="#method.try_into-1" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#573" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></details></div></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="pyo3" data-search-index-js="../../search-index.js" data-search-js="../../search.js"></div>
|
||
<script src="../../main.js"></script></body></html> |