Files
google_speech_rs/docs/pyo3/exceptions/socket/struct.gaierror.html
T
2021-06-02 05:29:43 +00:00

155 lines
98 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!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="API documentation for the Rust `gaierror` struct in crate `pyo3`."><meta name="keywords" content="rust, rustlang, rust-lang, gaierror"><title>pyo3::exceptions::socket::gaierror - 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 8]><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">&#9776;</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 gaierror</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#implementations">Methods</a><div class="sidebar-links"><a href="#method.new_err">new_err</a></div><a class="sidebar-title" href="#deref-methods">Methods from Deref&lt;Target=PyAny&gt;</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&lt;PyAny&gt;</a><a href="#impl-Debug">Debug</a><a href="#impl-Deref">Deref</a><a href="#impl-Display">Display</a><a href="#impl-Error">Error</a><a href="#impl-From%3C%26%27_%20gaierror%3E">From&lt;&amp;&#39;_ gaierror&gt;</a><a href="#impl-From%3C%26%27a%20gaierror%3E">From&lt;&amp;&#39;a gaierror&gt;</a><a href="#impl-FromPyObject%3C%27py%3E">FromPyObject&lt;&#39;py&gt;</a><a href="#impl-IntoPy%3CPy%3Cgaierror%3E%3E">IntoPy&lt;Py&lt;gaierror&gt;&gt;</a><a href="#impl-PartialEq%3Cgaierror%3E">PartialEq&lt;gaierror&gt;</a><a href="#impl-PyLayout%3Cgaierror%3E">PyLayout&lt;gaierror&gt;</a><a href="#impl-PyNativeType">PyNativeType</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&lt;T&gt;</a><a href="#impl-BorrowMut%3CT%3E">BorrowMut&lt;T&gt;</a><a href="#impl-From%3CT%3E">From&lt;T&gt;</a><a href="#impl-FromPyPointer%3C%27p%3E">FromPyPointer&lt;&#39;p&gt;</a><a href="#impl-Into%3CU%3E">Into&lt;U&gt;</a><a href="#impl-PyTryFrom%3C%27v%3E">PyTryFrom&lt;&#39;v&gt;</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&lt;U&gt;</a><a href="#impl-TryInto%3CU%3E">TryInto&lt;U&gt;</a></div></div><p class="location"><a href="../../index.html">pyo3</a>::<wbr><a href="../index.html">exceptions</a>::<wbr><a href="index.html">socket</a></p><div id="sidebar-vars" data-name="gaierror" 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><script src="../../../theme.js"></script><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">exceptions</a>::<wbr><a href="index.html">socket</a>::<wbr><a class="struct" href="">gaierror</a></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">&#x2212;</span>]</a></span><a class="srclink" href="../../../src/pyo3/exceptions.rs.html#431" title="goto source code">[src]</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust struct"><span class="docblock attributes top-attr">#[repr(transparent)]</span>pub struct gaierror(_);</pre></div><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><h3 id="impl" class="impl"><code class="in-band">impl <a class="struct" href="../../../pyo3/exceptions/socket/struct.gaierror.html" title="struct pyo3::exceptions::socket::gaierror">gaierror</a></code><a href="#impl" class="anchor"></a><a class="srclink" href="../../../src/pyo3/exceptions.rs.html#431" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.new_err" class="method"><code>pub fn <a href="#method.new_err" class="fnname">new_err</a>&lt;A&gt;(args: A) -&gt; <a class="struct" href="../../../pyo3/prelude/struct.PyErr.html" title="struct pyo3::prelude::PyErr">PyErr</a> <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="../../../pyo3/trait.PyErrArguments.html" title="trait pyo3::PyErrArguments">PyErrArguments</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> + 'static,&nbsp;</span></code><a class="srclink" href="../../../src/pyo3/exceptions.rs.html#431" title="goto source code">[src]</a></h4></div><h2 id="deref-methods" class="small-section-header">Methods from <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a>&lt;Target = <a class="struct" href="../../../pyo3/prelude/struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>&gt;<a href="#deref-methods" class="anchor"></a></h2><div class="impl-items"><h4 id="method.downcast" class="method"><code>pub fn <a href="#method.downcast" class="fnname">downcast</a>&lt;T&gt;(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>T, <a class="struct" href="../../../pyo3/struct.PyDowncastError.html" title="struct pyo3::PyDowncastError">PyDowncastError</a>&lt;'_&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="../../../pyo3/conversion/trait.PyTryFrom.html" title="trait pyo3::conversion::PyTryFrom">PyTryFrom</a>&lt;'py&gt;,&nbsp;</span></code><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>&lt;N&gt;(&amp;self, attr_name: N) -&gt; <a class="type" href="../../../pyo3/prelude/type.PyResult.html" title="type pyo3::prelude::PyResult">PyResult</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;N: <a class="trait" href="../../../pyo3/conversion/trait.ToPyObject.html" title="trait pyo3::conversion::ToPyObject">ToPyObject</a>,&nbsp;</span></code><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>&lt;N&gt;(&amp;self, attr_name: N) -&gt; <a class="type" href="../../../pyo3/prelude/type.PyResult.html" title="type pyo3::prelude::PyResult">PyResult</a>&lt;&amp;<a class="struct" href="../../../pyo3/prelude/struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;N: <a class="trait" href="../../../pyo3/conversion/trait.ToPyObject.html" title="trait pyo3::conversion::ToPyObject">ToPyObject</a>,&nbsp;</span></code><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>&lt;N, V&gt;(&amp;self, attr_name: N, value: V) -&gt; <a class="type" href="../../../pyo3/prelude/type.PyResult.html" title="type pyo3::prelude::PyResult">PyResult</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;N: <a class="trait" href="../../../pyo3/conversion/trait.ToBorrowedObject.html" title="trait pyo3::conversion::ToBorrowedObject">ToBorrowedObject</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;V: <a class="trait" href="../../../pyo3/conversion/trait.ToBorrowedObject.html" title="trait pyo3::conversion::ToBorrowedObject">ToBorrowedObject</a>,&nbsp;</span></code><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>&lt;N&gt;(&amp;self, attr_name: N) -&gt; <a class="type" href="../../../pyo3/prelude/type.PyResult.html" title="type pyo3::prelude::PyResult">PyResult</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;N: <a class="trait" href="../../../pyo3/conversion/trait.ToPyObject.html" title="trait pyo3::conversion::ToPyObject">ToPyObject</a>,&nbsp;</span></code><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>&lt;O&gt;(&amp;self, other: O) -&gt; <a class="type" href="../../../pyo3/prelude/type.PyResult.html" title="type pyo3::prelude::PyResult">PyResult</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;O: <a class="trait" href="../../../pyo3/conversion/trait.ToPyObject.html" title="trait pyo3::conversion::ToPyObject">ToPyObject</a>,&nbsp;</span></code><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 &lt; b:
return Less
elif a &gt; b:
return Greater
else:
raise TypeError(&quot;PyAny::compare(): All comparisons returned false&quot;)
</code></pre>
</div><h4 id="method.rich_compare" class="method"><code>pub fn <a href="#method.rich_compare" class="fnname">rich_compare</a>&lt;O&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;other: O, <br>&nbsp;&nbsp;&nbsp;&nbsp;compare_op: <a class="enum" href="../../../pyo3/class/basic/enum.CompareOp.html" title="enum pyo3::class::basic::CompareOp">CompareOp</a><br>) -&gt; <a class="type" href="../../../pyo3/prelude/type.PyResult.html" title="type pyo3::prelude::PyResult">PyResult</a>&lt;&amp;<a class="struct" href="../../../pyo3/prelude/struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;O: <a class="trait" href="../../../pyo3/conversion/trait.ToPyObject.html" title="trait pyo3::conversion::ToPyObject">ToPyObject</a>,&nbsp;</span></code><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 &lt; other</code></li>
<li>CompareOp::Le: <code>self &lt;= other</code></li>
<li>CompareOp::Gt: <code>self &gt; other</code></li>
<li>CompareOp::Ge: <code>self &gt;= 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>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><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>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;args: impl <a class="trait" href="../../../pyo3/conversion/trait.IntoPy.html" title="trait pyo3::conversion::IntoPy">IntoPy</a>&lt;<a class="struct" href="../../../pyo3/prelude/struct.Py.html" title="struct pyo3::prelude::Py">Py</a>&lt;<a class="struct" href="../../../pyo3/types/struct.PyTuple.html" title="struct pyo3::types::PyTuple">PyTuple</a>&gt;&gt;, <br>&nbsp;&nbsp;&nbsp;&nbsp;kwargs: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="struct" href="../../../pyo3/types/struct.PyDict.html" title="struct pyo3::types::PyDict">PyDict</a>&gt;<br>) -&gt; <a class="type" href="../../../pyo3/prelude/type.PyResult.html" title="type pyo3::prelude::PyResult">PyResult</a>&lt;&amp;<a class="struct" href="../../../pyo3/prelude/struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>&gt;</code><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>(&amp;self) -&gt; <a class="type" href="../../../pyo3/prelude/type.PyResult.html" title="type pyo3::prelude::PyResult">PyResult</a>&lt;&amp;<a class="struct" href="../../../pyo3/prelude/struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>&gt;</code><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>(&amp;self, args: impl <a class="trait" href="../../../pyo3/conversion/trait.IntoPy.html" title="trait pyo3::conversion::IntoPy">IntoPy</a>&lt;<a class="struct" href="../../../pyo3/prelude/struct.Py.html" title="struct pyo3::prelude::Py">Py</a>&lt;<a class="struct" href="../../../pyo3/types/struct.PyTuple.html" title="struct pyo3::types::PyTuple">PyTuple</a>&gt;&gt;) -&gt; <a class="type" href="../../../pyo3/prelude/type.PyResult.html" title="type pyo3::prelude::PyResult">PyResult</a>&lt;&amp;<a class="struct" href="../../../pyo3/prelude/struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>&gt;</code><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>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;name: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;args: impl <a class="trait" href="../../../pyo3/conversion/trait.IntoPy.html" title="trait pyo3::conversion::IntoPy">IntoPy</a>&lt;<a class="struct" href="../../../pyo3/prelude/struct.Py.html" title="struct pyo3::prelude::Py">Py</a>&lt;<a class="struct" href="../../../pyo3/types/struct.PyTuple.html" title="struct pyo3::types::PyTuple">PyTuple</a>&gt;&gt;, <br>&nbsp;&nbsp;&nbsp;&nbsp;kwargs: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="struct" href="../../../pyo3/types/struct.PyDict.html" title="struct pyo3::types::PyDict">PyDict</a>&gt;<br>) -&gt; <a class="type" href="../../../pyo3/prelude/type.PyResult.html" title="type pyo3::prelude::PyResult">PyResult</a>&lt;&amp;<a class="struct" href="../../../pyo3/prelude/struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>&gt;</code><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" 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</span>::<span class="ident">types</span>::<span class="ident">IntoPyDict</span>;
<span class="kw">let</span> <span class="ident">gil</span> <span class="op">=</span> <span class="ident">Python</span>::<span class="ident">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="macro">!</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="macro">!</span>[(<span class="string">&quot;reverse&quot;</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">&quot;sort&quot;</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="macro">!</span>(<span class="ident">list</span>.<span class="ident">extract</span>::<span class="op">&lt;</span><span class="ident">Vec</span><span class="op">&lt;</span><span class="ident">i32</span><span class="op">&gt;</span><span class="op">&gt;</span>(<span class="ident">py</span>).<span class="ident">unwrap</span>(), <span class="macro">vec</span><span class="macro">!</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">&quot;append&quot;</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="macro">!</span>(<span class="ident">list</span>.<span class="ident">extract</span>::<span class="op">&lt;</span><span class="ident">Vec</span><span class="op">&lt;</span><span class="ident">i32</span><span class="op">&gt;</span><span class="op">&gt;</span>(<span class="ident">py</span>).<span class="ident">unwrap</span>(), <span class="macro">vec</span><span class="macro">!</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>(&amp;self, name: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="type" href="../../../pyo3/prelude/type.PyResult.html" title="type pyo3::prelude::PyResult">PyResult</a>&lt;&amp;<a class="struct" href="../../../pyo3/prelude/struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>&gt;</code><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>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;name: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;args: impl <a class="trait" href="../../../pyo3/conversion/trait.IntoPy.html" title="trait pyo3::conversion::IntoPy">IntoPy</a>&lt;<a class="struct" href="../../../pyo3/prelude/struct.Py.html" title="struct pyo3::prelude::Py">Py</a>&lt;<a class="struct" href="../../../pyo3/types/struct.PyTuple.html" title="struct pyo3::types::PyTuple">PyTuple</a>&gt;&gt;<br>) -&gt; <a class="type" href="../../../pyo3/prelude/type.PyResult.html" title="type pyo3::prelude::PyResult">PyResult</a>&lt;&amp;<a class="struct" href="../../../pyo3/prelude/struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>&gt;</code><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>(&amp;self) -&gt; <a class="type" href="../../../pyo3/prelude/type.PyResult.html" title="type pyo3::prelude::PyResult">PyResult</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>&gt;</code><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>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><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>(&amp;self) -&gt; <a class="type" href="../../../pyo3/prelude/type.PyResult.html" title="type pyo3::prelude::PyResult">PyResult</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>&gt;</code><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>&lt;K&gt;(&amp;self, key: K) -&gt; <a class="type" href="../../../pyo3/prelude/type.PyResult.html" title="type pyo3::prelude::PyResult">PyResult</a>&lt;&amp;<a class="struct" href="../../../pyo3/prelude/struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;K: <a class="trait" href="../../../pyo3/conversion/trait.ToBorrowedObject.html" title="trait pyo3::conversion::ToBorrowedObject">ToBorrowedObject</a>,&nbsp;</span></code><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>&lt;K, V&gt;(&amp;self, key: K, value: V) -&gt; <a class="type" href="../../../pyo3/prelude/type.PyResult.html" title="type pyo3::prelude::PyResult">PyResult</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;K: <a class="trait" href="../../../pyo3/conversion/trait.ToBorrowedObject.html" title="trait pyo3::conversion::ToBorrowedObject">ToBorrowedObject</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;V: <a class="trait" href="../../../pyo3/conversion/trait.ToBorrowedObject.html" title="trait pyo3::conversion::ToBorrowedObject">ToBorrowedObject</a>,&nbsp;</span></code><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>&lt;K&gt;(&amp;self, key: K) -&gt; <a class="type" href="../../../pyo3/prelude/type.PyResult.html" title="type pyo3::prelude::PyResult">PyResult</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;K: <a class="trait" href="../../../pyo3/conversion/trait.ToBorrowedObject.html" title="trait pyo3::conversion::ToBorrowedObject">ToBorrowedObject</a>,&nbsp;</span></code><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>(&amp;self) -&gt; <a class="type" href="../../../pyo3/prelude/type.PyResult.html" title="type pyo3::prelude::PyResult">PyResult</a>&lt;&amp;<a class="struct" href="../../../pyo3/types/struct.PyIterator.html" title="struct pyo3::types::PyIterator">PyIterator</a>&gt;</code><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>(&amp;self) -&gt; &amp;<a class="struct" href="../../../pyo3/types/struct.PyType.html" title="struct pyo3::types::PyType">PyType</a></code><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 objects 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>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="struct" href="../../../pyo3/ffi/struct.PyTypeObject.html" title="struct pyo3::ffi::PyTypeObject">PyTypeObject</a></code><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>&lt;'a, D&gt;(&amp;'a self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a </a>D, <a class="struct" href="../../../pyo3/struct.PyDowncastError.html" title="struct pyo3::PyDowncastError">PyDowncastError</a>&lt;'_&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;D: <a class="trait" href="../../../pyo3/conversion/trait.PyTryFrom.html" title="trait pyo3::conversion::PyTryFrom">PyTryFrom</a>&lt;'a&gt;,&nbsp;</span></code><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>&lt;'a, D&gt;(&amp;'a self) -&gt; <a class="type" href="../../../pyo3/prelude/type.PyResult.html" title="type pyo3::prelude::PyResult">PyResult</a>&lt;D&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;D: <a class="trait" href="../../../pyo3/conversion/trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a>&lt;'a&gt;,&nbsp;</span></code><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>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.isize.html">isize</a></code><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>(&amp;self) -&gt; <a class="type" href="../../../pyo3/prelude/type.PyResult.html" title="type pyo3::prelude::PyResult">PyResult</a>&lt;&amp;<a class="struct" href="../../../pyo3/types/struct.PyString.html" title="struct pyo3::types::PyString">PyString</a>&gt;</code><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>(&amp;self) -&gt; <a class="type" href="../../../pyo3/prelude/type.PyResult.html" title="type pyo3::prelude::PyResult">PyResult</a>&lt;&amp;<a class="struct" href="../../../pyo3/types/struct.PyString.html" title="struct pyo3::types::PyString">PyString</a>&gt;</code><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>(&amp;self) -&gt; <a class="type" href="../../../pyo3/prelude/type.PyResult.html" title="type pyo3::prelude::PyResult">PyResult</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.isize.html">isize</a>&gt;</code><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>(&amp;self) -&gt; <a class="type" href="../../../pyo3/prelude/type.PyResult.html" title="type pyo3::prelude::PyResult">PyResult</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>&gt;</code><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>(&amp;self) -&gt; &amp;<a class="struct" href="../../../pyo3/types/struct.PyList.html" title="struct pyo3::types::PyList">PyList</a></code><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>&lt;T:&nbsp;<a class="trait" href="../../../pyo3/type_object/trait.PyTypeObject.html" title="trait pyo3::type_object::PyTypeObject">PyTypeObject</a>&gt;(&amp;self) -&gt; <a class="type" href="../../../pyo3/prelude/type.PyResult.html" title="type pyo3::prelude::PyResult">PyResult</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>&gt;</code><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><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><h3 id="impl-AsPyPointer" class="impl"><code class="in-band">impl <a class="trait" href="../../../pyo3/conversion/trait.AsPyPointer.html" title="trait pyo3::conversion::AsPyPointer">AsPyPointer</a> for <a class="struct" href="../../../pyo3/exceptions/socket/struct.gaierror.html" title="struct pyo3::exceptions::socket::gaierror">gaierror</a></code><a href="#impl-AsPyPointer" class="anchor"></a><a class="srclink" href="../../../src/pyo3/exceptions.rs.html#431" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.as_ptr" class="method"><code>fn <a href="../../../pyo3/conversion/trait.AsPyPointer.html#tymethod.as_ptr" class="fnname">as_ptr</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="struct" href="../../../pyo3/ffi/struct.PyObject.html" title="struct pyo3::ffi::PyObject">PyObject</a></code><a class="srclink" href="../../../src/pyo3/exceptions.rs.html#431" title="goto source code">[src]</a></h4><div class="docblock"><p>Gets the underlying FFI pointer, returns a borrowed pointer.</p>
</div></div><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>&lt;<a class="struct" href="../../../pyo3/prelude/struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>&gt; for <a class="struct" href="../../../pyo3/exceptions/socket/struct.gaierror.html" title="struct pyo3::exceptions::socket::gaierror">gaierror</a></code><a href="#impl-AsRef%3CPyAny%3E" class="anchor"></a><a class="srclink" href="../../../src/pyo3/exceptions.rs.html#431" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.as_ref" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&amp;self) -&gt; &amp;<a class="struct" href="../../../pyo3/prelude/struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><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><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="../../../pyo3/exceptions/socket/struct.gaierror.html" title="struct pyo3::exceptions::socket::gaierror">gaierror</a></code><a href="#impl-Debug" class="anchor"></a><a class="srclink" href="../../../src/pyo3/exceptions.rs.html#431" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.fmt" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<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>&gt;</code><a class="srclink" href="../../../src/pyo3/exceptions.rs.html#431" 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><h3 id="impl-Deref" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a> for <a class="struct" href="../../../pyo3/exceptions/socket/struct.gaierror.html" title="struct pyo3::exceptions::socket::gaierror">gaierror</a></code><a href="#impl-Deref" class="anchor"></a><a class="srclink" href="../../../src/pyo3/exceptions.rs.html#431" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="associatedtype.Target" class="type"><code>type <a href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html#associatedtype.Target" class="type">Target</a> = <a class="struct" href="../../../pyo3/prelude/struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code></h4><div class='docblock'><p>The resulting type after dereferencing.</p>
</div><h4 id="method.deref" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html#tymethod.deref" class="fnname">deref</a>(&amp;self) -&gt; &amp;<a class="struct" href="../../../pyo3/prelude/struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code><a class="srclink" href="../../../src/pyo3/exceptions.rs.html#431" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Dereferences the value.</p>
</div></div><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="../../../pyo3/exceptions/socket/struct.gaierror.html" title="struct pyo3::exceptions::socket::gaierror">gaierror</a></code><a href="#impl-Display" class="anchor"></a><a class="srclink" href="../../../src/pyo3/exceptions.rs.html#431" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.fmt-1" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<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>&gt;</code><a class="srclink" href="../../../src/pyo3/exceptions.rs.html#431" 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><h3 id="impl-Error" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/error/trait.Error.html" title="trait std::error::Error">Error</a> for <a class="struct" href="../../../pyo3/exceptions/socket/struct.gaierror.html" title="struct pyo3::exceptions::socket::gaierror">gaierror</a></code><a href="#impl-Error" class="anchor"></a><a class="srclink" href="../../../src/pyo3/exceptions.rs.html#431" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.source" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.source" class="fnname">source</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;(dyn <a class="trait" href="https://doc.rust-lang.org/nightly/std/error/trait.Error.html" title="trait std::error::Error">Error</a> + 'static)&gt;</code><a class="srclink" href="../../../src/pyo3/exceptions.rs.html#431" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>The lower-level source of this error, if any. <a href="https://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.source">Read more</a></p>
</div><h4 id="method.backtrace" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.backtrace" class="fnname">backtrace</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="struct" href="https://doc.rust-lang.org/nightly/std/backtrace/struct.Backtrace.html" title="struct std::backtrace::Backtrace">Backtrace</a>&gt;</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/std/error.rs.html#127" title="goto source code">[src]</a></h4><div class="item-info hidden"><div class="stab unstable"><span class="emoji">🔬</span> This is a nightly-only experimental API. (<code>backtrace</code>)</div></div><div class='docblock hidden'><p>Returns a stack backtrace, if available, of where this error occurred. <a href="https://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.backtrace">Read more</a></p>
</div><h4 id="method.description" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.description" class="fnname">description</a>(&amp;self) -&gt; &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a></code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/std/error.rs.html#139" title="goto source code">[src]</a></h4><div class="item-info hidden"><div class="stab deprecated"><span class="emoji">👎</span> Deprecated since 1.42.0: <p>use the Display impl or to_string()</p>
</div></div><div class='docblock hidden'> <a href="https://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.description">Read more</a></div><h4 id="method.cause" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.cause" class="fnname">cause</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/std/error/trait.Error.html" title="trait std::error::Error">Error</a>&gt;</code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/std/error.rs.html#149" title="goto source code">[src]</a></h4><div class="item-info hidden"><div class="stab deprecated"><span class="emoji">👎</span> Deprecated since 1.33.0: <p>replaced by Error::source, which can support downcasting</p>
</div></div></div><h3 id="impl-From%3C%26%27_%20gaierror%3E" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;&amp;'_ <a class="struct" href="../../../pyo3/exceptions/socket/struct.gaierror.html" title="struct pyo3::exceptions::socket::gaierror">gaierror</a>&gt; for <a class="struct" href="../../../pyo3/prelude/struct.PyErr.html" title="struct pyo3::prelude::PyErr">PyErr</a></code><a href="#impl-From%3C%26%27_%20gaierror%3E" class="anchor"></a><a class="srclink" href="../../../src/pyo3/exceptions.rs.html#431" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.from" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(err: &amp;<a class="struct" href="../../../pyo3/exceptions/socket/struct.gaierror.html" title="struct pyo3::exceptions::socket::gaierror">gaierror</a>) -&gt; <a class="struct" href="../../../pyo3/prelude/struct.PyErr.html" title="struct pyo3::prelude::PyErr">PyErr</a></code><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><h3 id="impl-From%3C%26%27_%20gaierror%3E-1" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;&amp;'_ <a class="struct" href="../../../pyo3/exceptions/socket/struct.gaierror.html" title="struct pyo3::exceptions::socket::gaierror">gaierror</a>&gt; for <a class="struct" href="../../../pyo3/prelude/struct.Py.html" title="struct pyo3::prelude::Py">Py</a>&lt;<a class="struct" href="../../../pyo3/exceptions/socket/struct.gaierror.html" title="struct pyo3::exceptions::socket::gaierror">gaierror</a>&gt;</code><a href="#impl-From%3C%26%27_%20gaierror%3E-1" class="anchor"></a><a class="srclink" href="../../../src/pyo3/exceptions.rs.html#431" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.from-1" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(other: &amp;<a class="struct" href="../../../pyo3/exceptions/socket/struct.gaierror.html" title="struct pyo3::exceptions::socket::gaierror">gaierror</a>) -&gt; Self</code><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><h3 id="impl-From%3C%26%27a%20gaierror%3E" class="impl"><code class="in-band">impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;&amp;'a <a class="struct" href="../../../pyo3/exceptions/socket/struct.gaierror.html" title="struct pyo3::exceptions::socket::gaierror">gaierror</a>&gt; for &amp;'a <a class="struct" href="../../../pyo3/prelude/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><div class="impl-items"><h4 id="method.from-2" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ob: &amp;'a <a class="struct" href="../../../pyo3/exceptions/socket/struct.gaierror.html" title="struct pyo3::exceptions::socket::gaierror">gaierror</a>) -&gt; Self</code><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><h3 id="impl-FromPyObject%3C%27py%3E" class="impl"><code class="in-band">impl&lt;'py&gt; <a class="trait" href="../../../pyo3/conversion/trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a>&lt;'py&gt; for &amp;'py <a class="struct" href="../../../pyo3/exceptions/socket/struct.gaierror.html" title="struct pyo3::exceptions::socket::gaierror">gaierror</a></code><a href="#impl-FromPyObject%3C%27py%3E" class="anchor"></a><a class="srclink" href="../../../src/pyo3/exceptions.rs.html#431" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.extract-1" class="method hidden"><code>fn <a href="../../../pyo3/conversion/trait.FromPyObject.html#tymethod.extract" class="fnname">extract</a>(obj: &amp;'py <a class="struct" href="../../../pyo3/prelude/struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>) -&gt; <a class="type" href="../../../pyo3/prelude/type.PyResult.html" title="type pyo3::prelude::PyResult">PyResult</a>&lt;Self&gt;</code><a class="srclink" href="../../../src/pyo3/exceptions.rs.html#431" 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><h3 id="impl-IntoPy%3CPy%3Cgaierror%3E%3E" class="impl"><code class="in-band">impl <a class="trait" href="../../../pyo3/conversion/trait.IntoPy.html" title="trait pyo3::conversion::IntoPy">IntoPy</a>&lt;<a class="struct" href="../../../pyo3/prelude/struct.Py.html" title="struct pyo3::prelude::Py">Py</a>&lt;<a class="struct" href="../../../pyo3/exceptions/socket/struct.gaierror.html" title="struct pyo3::exceptions::socket::gaierror">gaierror</a>&gt;&gt; for &amp;<a class="struct" href="../../../pyo3/exceptions/socket/struct.gaierror.html" title="struct pyo3::exceptions::socket::gaierror">gaierror</a></code><a href="#impl-IntoPy%3CPy%3Cgaierror%3E%3E" class="anchor"></a><a class="srclink" href="../../../src/pyo3/exceptions.rs.html#431" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.into_py" class="method hidden"><code>fn <a href="../../../pyo3/conversion/trait.IntoPy.html#tymethod.into_py" class="fnname">into_py</a>(self, py: <a class="struct" href="../../../pyo3/prelude/struct.Python.html" title="struct pyo3::prelude::Python">Python</a>&lt;'_&gt;) -&gt; <a class="struct" href="../../../pyo3/prelude/struct.Py.html" title="struct pyo3::prelude::Py">Py</a>&lt;<a class="struct" href="../../../pyo3/exceptions/socket/struct.gaierror.html" title="struct pyo3::exceptions::socket::gaierror">gaierror</a>&gt;</code><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><h3 id="impl-PartialEq%3Cgaierror%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>&lt;<a class="struct" href="../../../pyo3/exceptions/socket/struct.gaierror.html" title="struct pyo3::exceptions::socket::gaierror">gaierror</a>&gt; for <a class="struct" href="../../../pyo3/exceptions/socket/struct.gaierror.html" title="struct pyo3::exceptions::socket::gaierror">gaierror</a></code><a href="#impl-PartialEq%3Cgaierror%3E" class="anchor"></a><a class="srclink" href="../../../src/pyo3/exceptions.rs.html#431" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.eq" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq" class="fnname">eq</a>(&amp;self, o: &amp;<a class="struct" href="../../../pyo3/exceptions/socket/struct.gaierror.html" title="struct pyo3::exceptions::socket::gaierror">gaierror</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class="srclink" href="../../../src/pyo3/exceptions.rs.html#431" 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"><code><span class="docblock attributes">#[must_use]</span>pub fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne" class="fnname">ne</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Rhs) -&gt; <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 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><h3 id="impl-PyLayout%3Cgaierror%3E" class="impl"><code class="in-band">impl <a class="trait" href="../../../pyo3/type_object/trait.PyLayout.html" title="trait pyo3::type_object::PyLayout">PyLayout</a>&lt;<a class="struct" href="../../../pyo3/exceptions/socket/struct.gaierror.html" title="struct pyo3::exceptions::socket::gaierror">gaierror</a>&gt; for <a class="struct" href="../../../pyo3/ffi/struct.PyBaseExceptionObject.html" title="struct pyo3::ffi::PyBaseExceptionObject">PyBaseExceptionObject</a></code><a href="#impl-PyLayout%3Cgaierror%3E" class="anchor"></a><a class="srclink" href="../../../src/pyo3/exceptions.rs.html#431" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="associatedconstant.IS_NATIVE_TYPE" class="associatedconstant hidden"><code>const <a href="../../../pyo3/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 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"><code>fn <a href="../../../pyo3/type_object/trait.PyLayout.html#method.get_super" class="fnname">get_super</a>(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;mut T::<a class="type" href="../../../pyo3/type_object/trait.PyTypeInfo.html#associatedtype.BaseLayout" title="type pyo3::type_object::PyTypeInfo::BaseLayout">BaseLayout</a>&gt;</code><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"><code>fn <a href="../../../pyo3/type_object/trait.PyLayout.html#method.py_init" class="fnname">py_init</a>(&amp;mut self, _value: T)</code><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"><code>unsafe fn <a href="../../../pyo3/type_object/trait.PyLayout.html#method.py_drop" class="fnname">py_drop</a>(&amp;mut self, _py: <a class="struct" href="../../../pyo3/prelude/struct.Python.html" title="struct pyo3::prelude::Python">Python</a>&lt;'_&gt;)</code><a class="srclink" href="../../../src/pyo3/type_object.rs.html#24" title="goto source code">[src]</a></h4></div><h3 id="impl-PyNativeType" class="impl"><code class="in-band">impl <a class="trait" href="../../../pyo3/trait.PyNativeType.html" title="trait pyo3::PyNativeType">PyNativeType</a> for <a class="struct" href="../../../pyo3/exceptions/socket/struct.gaierror.html" title="struct pyo3::exceptions::socket::gaierror">gaierror</a></code><a href="#impl-PyNativeType" class="anchor"></a><a class="srclink" href="../../../src/pyo3/exceptions.rs.html#431" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.py" class="method hidden"><code>fn <a href="../../../pyo3/trait.PyNativeType.html#method.py" class="fnname">py</a>(&amp;self) -&gt; <a class="struct" href="../../../pyo3/prelude/struct.Python.html" title="struct pyo3::prelude::Python">Python</a>&lt;'_&gt;</code><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"><code>unsafe fn <a href="../../../pyo3/trait.PyNativeType.html#method.unchecked_downcast" class="fnname">unchecked_downcast</a>(obj: &amp;<a class="struct" href="../../../pyo3/prelude/struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self</code><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>&amp;PyAny</code> to <code>&amp;Self</code> without no type checking. <a href="../../../pyo3/trait.PyNativeType.html#method.unchecked_downcast">Read more</a></p>
</div></div><h3 id="impl-PyTypeInfo" class="impl"><code class="in-band">impl <a class="trait" href="../../../pyo3/type_object/trait.PyTypeInfo.html" title="trait pyo3::type_object::PyTypeInfo">PyTypeInfo</a> for <a class="struct" href="../../../pyo3/exceptions/socket/struct.gaierror.html" title="struct pyo3::exceptions::socket::gaierror">gaierror</a></code><a href="#impl-PyTypeInfo" class="anchor"></a><a class="srclink" href="../../../src/pyo3/exceptions.rs.html#431" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="associatedtype.Type" class="type"><code>type <a href="../../../pyo3/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></h4><div class='docblock'><p>Type of objects to store in PyObject struct</p>
</div><h4 id="associatedtype.BaseType" class="type"><code>type <a href="../../../pyo3/type_object/trait.PyTypeInfo.html#associatedtype.BaseType" class="type">BaseType</a> = <a class="struct" href="../../../pyo3/prelude/struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a></code></h4><div class='docblock'><p>Base class</p>
</div><h4 id="associatedtype.Layout" class="type"><code>type <a href="../../../pyo3/type_object/trait.PyTypeInfo.html#associatedtype.Layout" class="type">Layout</a> = <a class="struct" href="../../../pyo3/ffi/struct.PyBaseExceptionObject.html" title="struct pyo3::ffi::PyBaseExceptionObject">PyBaseExceptionObject</a></code></h4><div class='docblock'><p>Layout</p>
</div><h4 id="associatedtype.BaseLayout" class="type"><code>type <a href="../../../pyo3/type_object/trait.PyTypeInfo.html#associatedtype.BaseLayout" class="type">BaseLayout</a> = <a class="struct" href="../../../pyo3/ffi/struct.PyObject.html" title="struct pyo3::ffi::PyObject">PyObject</a></code></h4><div class='docblock'><p>Layout of Basetype.</p>
</div><h4 id="associatedtype.Initializer" class="type"><code>type <a href="../../../pyo3/type_object/trait.PyTypeInfo.html#associatedtype.Initializer" class="type">Initializer</a> = <a class="struct" href="../../../pyo3/pyclass_init/struct.PyNativeTypeInitializer.html" title="struct pyo3::pyclass_init::PyNativeTypeInitializer">PyNativeTypeInitializer</a>&lt;Self&gt;</code></h4><div class='docblock'><p>Initializer for layout</p>
</div><h4 id="associatedtype.AsRefTarget" class="type"><code>type <a href="../../../pyo3/type_object/trait.PyTypeInfo.html#associatedtype.AsRefTarget" class="type">AsRefTarget</a> = Self</code></h4><div class='docblock'><p>Utility type to make Py::as_ref work</p>
</div><h4 id="associatedconstant.NAME" class="associatedconstant hidden"><code>const <a href="../../../pyo3/type_object/trait.PyTypeInfo.html#associatedconstant.NAME" class="constant"><b>NAME</b></a>: &amp;'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a></code><a class="srclink" href="../../../src/pyo3/exceptions.rs.html#431" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Class name</p>
</div><h4 id="associatedconstant.MODULE" class="associatedconstant hidden"><code>const <a href="../../../pyo3/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>&lt;&amp;'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt;</code><a class="srclink" href="../../../src/pyo3/exceptions.rs.html#431" 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"><code>fn <a href="../../../pyo3/type_object/trait.PyTypeInfo.html#tymethod.type_object_raw" class="fnname">type_object_raw</a>(_py: <a class="struct" href="../../../pyo3/prelude/struct.Python.html" title="struct pyo3::prelude::Python">Python</a>&lt;'_&gt;) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="struct" href="../../../pyo3/ffi/struct.PyTypeObject.html" title="struct pyo3::ffi::PyTypeObject">PyTypeObject</a></code><a class="srclink" href="../../../src/pyo3/exceptions.rs.html#431" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>PyTypeObject instance for this type.</p>
</div><h4 id="associatedconstant.DESCRIPTION" class="associatedconstant hidden"><code>const <a href="../../../pyo3/type_object/trait.PyTypeInfo.html#associatedconstant.DESCRIPTION" class="constant"><b>DESCRIPTION</b></a>: &amp;'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a></code><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"><code>const <a href="../../../pyo3/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 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_type_of" class="method hidden"><code>fn <a href="../../../pyo3/type_object/trait.PyTypeInfo.html#method.is_type_of" class="fnname">is_type_of</a>(object: &amp;<a class="struct" href="../../../pyo3/prelude/struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class="srclink" href="../../../src/pyo3/type_object.rs.html#108-110" 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="method.is_exact_type_of" class="method hidden"><code>fn <a href="../../../pyo3/type_object/trait.PyTypeInfo.html#method.is_exact_type_of" class="fnname">is_exact_type_of</a>(object: &amp;<a class="struct" href="../../../pyo3/prelude/struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><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><h3 id="impl-ToPyObject" class="impl"><code class="in-band">impl <a class="trait" href="../../../pyo3/conversion/trait.ToPyObject.html" title="trait pyo3::conversion::ToPyObject">ToPyObject</a> for <a class="struct" href="../../../pyo3/exceptions/socket/struct.gaierror.html" title="struct pyo3::exceptions::socket::gaierror">gaierror</a></code><a href="#impl-ToPyObject" class="anchor"></a><a class="srclink" href="../../../src/pyo3/exceptions.rs.html#431" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.to_object" class="method hidden"><code>fn <a href="../../../pyo3/conversion/trait.ToPyObject.html#tymethod.to_object" class="fnname">to_object</a>(&amp;self, py: <a class="struct" href="../../../pyo3/prelude/struct.Python.html" title="struct pyo3::prelude::Python">Python</a>&lt;'_&gt;) -&gt; <a class="type" href="../../../pyo3/prelude/type.PyObject.html" title="type pyo3::prelude::PyObject">PyObject</a></code><a class="srclink" href="../../../src/pyo3/exceptions.rs.html#431" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Converts self into a Python object.</p>
</div></div></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="../../../pyo3/exceptions/socket/struct.gaierror.html" title="struct pyo3::exceptions::socket::gaierror">gaierror</a></code><a href="#impl-RefUnwindSafe" class="anchor"></a></h3><div class="impl-items"></div><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="../../../pyo3/exceptions/socket/struct.gaierror.html" title="struct pyo3::exceptions::socket::gaierror">gaierror</a></code><a href="#impl-Send" class="anchor"></a></h3><div class="impl-items"></div><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="../../../pyo3/exceptions/socket/struct.gaierror.html" title="struct pyo3::exceptions::socket::gaierror">gaierror</a></code><a href="#impl-Sync" class="anchor"></a></h3><div class="impl-items"></div><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="../../../pyo3/exceptions/socket/struct.gaierror.html" title="struct pyo3::exceptions::socket::gaierror">gaierror</a></code><a href="#impl-Unpin" class="anchor"></a></h3><div class="impl-items"></div><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="../../../pyo3/exceptions/socket/struct.gaierror.html" title="struct pyo3::exceptions::socket::gaierror">gaierror</a></code><a href="#impl-UnwindSafe" class="anchor"></a></h3><div class="impl-items"></div></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><h3 id="impl-Any" class="impl"><code class="in-band">impl&lt;T&gt; <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>&nbsp;&nbsp;&nbsp;&nbsp;T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</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><div class="impl-items"><h4 id="method.type_id" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><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><h3 id="impl-Borrow%3CT%3E" class="impl"><code class="in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;T&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</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><div class="impl-items"><h4 id="method.borrow" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow" class="fnname">borrow</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>T</code><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><h3 id="impl-BorrowMut%3CT%3E" class="impl"><code class="in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</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><div class="impl-items"><h4 id="method.borrow_mut" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fnname">borrow_mut</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>T</code><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><h3 id="impl-From%3CT%3E" class="impl"><code class="in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt; 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><div class="impl-items"><h4 id="method.from-3" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(t: T) -&gt; T</code><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><h3 id="impl-FromPyPointer%3C%27p%3E" class="impl"><code class="in-band">impl&lt;'p, T&gt; <a class="trait" href="../../../pyo3/conversion/trait.FromPyPointer.html" title="trait pyo3::conversion::FromPyPointer">FromPyPointer</a>&lt;'p&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: 'p + <a class="trait" href="../../../pyo3/trait.PyNativeType.html" title="trait pyo3::PyNativeType">PyNativeType</a>,&nbsp;</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><div class="impl-items"><h4 id="method.from_owned_ptr_or_opt" class="method hidden"><code>pub unsafe fn <a href="../../../pyo3/conversion/trait.FromPyPointer.html#tymethod.from_owned_ptr_or_opt" class="fnname">from_owned_ptr_or_opt</a>(<a class="struct" href="../../../pyo3/prelude/struct.Python.html" title="struct pyo3::prelude::Python">Python</a>&lt;'p&gt;, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="struct" href="../../../pyo3/ffi/struct.PyObject.html" title="struct pyo3::ffi::PyObject">PyObject</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'p </a>T&gt;</code><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="../../../pyo3/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"><code>pub unsafe fn <a href="../../../pyo3/conversion/trait.FromPyPointer.html#tymethod.from_borrowed_ptr_or_opt" class="fnname">from_borrowed_ptr_or_opt</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<a class="struct" href="../../../pyo3/prelude/struct.Python.html" title="struct pyo3::prelude::Python">Python</a>&lt;'p&gt;, <br>&nbsp;&nbsp;&nbsp;&nbsp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="struct" href="../../../pyo3/ffi/struct.PyObject.html" title="struct pyo3::ffi::PyObject">PyObject</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'p </a>T&gt;</code><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="../../../pyo3/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"><code>unsafe fn <a href="../../../pyo3/conversion/trait.FromPyPointer.html#method.from_owned_ptr_or_panic" class="fnname">from_owned_ptr_or_panic</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;py: <a class="struct" href="../../../pyo3/prelude/struct.Python.html" title="struct pyo3::prelude::Python">Python</a>&lt;'p&gt;, <br>&nbsp;&nbsp;&nbsp;&nbsp;ptr: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="struct" href="../../../pyo3/ffi/struct.PyObject.html" title="struct pyo3::ffi::PyObject">PyObject</a><br>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'p </a>Self</code><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="../../../pyo3/conversion/trait.FromPyPointer.html#method.from_owned_ptr_or_panic">Read more</a></p>
</div><h4 id="method.from_owned_ptr" class="method hidden"><code>unsafe fn <a href="../../../pyo3/conversion/trait.FromPyPointer.html#method.from_owned_ptr" class="fnname">from_owned_ptr</a>(py: <a class="struct" href="../../../pyo3/prelude/struct.Python.html" title="struct pyo3::prelude::Python">Python</a>&lt;'p&gt;, ptr: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="struct" href="../../../pyo3/ffi/struct.PyObject.html" title="struct pyo3::ffi::PyObject">PyObject</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'p </a>Self</code><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="../../../pyo3/conversion/trait.FromPyPointer.html#method.from_owned_ptr">Read more</a></p>
</div><h4 id="method.from_owned_ptr_or_err" class="method hidden"><code>unsafe fn <a href="../../../pyo3/conversion/trait.FromPyPointer.html#method.from_owned_ptr_or_err" class="fnname">from_owned_ptr_or_err</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;py: <a class="struct" href="../../../pyo3/prelude/struct.Python.html" title="struct pyo3::prelude::Python">Python</a>&lt;'p&gt;, <br>&nbsp;&nbsp;&nbsp;&nbsp;ptr: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="struct" href="../../../pyo3/ffi/struct.PyObject.html" title="struct pyo3::ffi::PyObject">PyObject</a><br>) -&gt; <a class="type" href="../../../pyo3/prelude/type.PyResult.html" title="type pyo3::prelude::PyResult">PyResult</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'p </a>Self&gt;</code><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="../../../pyo3/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"><code>unsafe fn <a href="../../../pyo3/conversion/trait.FromPyPointer.html#method.from_borrowed_ptr_or_panic" class="fnname">from_borrowed_ptr_or_panic</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;py: <a class="struct" href="../../../pyo3/prelude/struct.Python.html" title="struct pyo3::prelude::Python">Python</a>&lt;'p&gt;, <br>&nbsp;&nbsp;&nbsp;&nbsp;ptr: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="struct" href="../../../pyo3/ffi/struct.PyObject.html" title="struct pyo3::ffi::PyObject">PyObject</a><br>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'p </a>Self</code><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="../../../pyo3/conversion/trait.FromPyPointer.html#method.from_borrowed_ptr_or_panic">Read more</a></p>
</div><h4 id="method.from_borrowed_ptr" class="method hidden"><code>unsafe fn <a href="../../../pyo3/conversion/trait.FromPyPointer.html#method.from_borrowed_ptr" class="fnname">from_borrowed_ptr</a>(py: <a class="struct" href="../../../pyo3/prelude/struct.Python.html" title="struct pyo3::prelude::Python">Python</a>&lt;'p&gt;, ptr: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="struct" href="../../../pyo3/ffi/struct.PyObject.html" title="struct pyo3::ffi::PyObject">PyObject</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'p </a>Self</code><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="../../../pyo3/conversion/trait.FromPyPointer.html#method.from_borrowed_ptr">Read more</a></p>
</div><h4 id="method.from_borrowed_ptr_or_err" class="method hidden"><code>unsafe fn <a href="../../../pyo3/conversion/trait.FromPyPointer.html#method.from_borrowed_ptr_or_err" class="fnname">from_borrowed_ptr_or_err</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;py: <a class="struct" href="../../../pyo3/prelude/struct.Python.html" title="struct pyo3::prelude::Python">Python</a>&lt;'p&gt;, <br>&nbsp;&nbsp;&nbsp;&nbsp;ptr: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="struct" href="../../../pyo3/ffi/struct.PyObject.html" title="struct pyo3::ffi::PyObject">PyObject</a><br>) -&gt; <a class="type" href="../../../pyo3/prelude/type.PyResult.html" title="type pyo3::prelude::PyResult">PyResult</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'p </a>Self&gt;</code><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="../../../pyo3/conversion/trait.FromPyPointer.html#method.from_borrowed_ptr_or_err">Read more</a></p>
</div></div><h3 id="impl-Into%3CU%3E" class="impl"><code class="in-band">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;U&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt;,&nbsp;</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><div class="impl-items"><h4 id="method.into" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into" class="fnname">into</a>(self) -&gt; U</code><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><h3 id="impl-PyTryFrom%3C%27v%3E" class="impl"><code class="in-band">impl&lt;'v, T&gt; <a class="trait" href="../../../pyo3/conversion/trait.PyTryFrom.html" title="trait pyo3::conversion::PyTryFrom">PyTryFrom</a>&lt;'v&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="../../../pyo3/type_object/trait.PyTypeInfo.html" title="trait pyo3::type_object::PyTypeInfo">PyTypeInfo</a> + <a class="trait" href="../../../pyo3/trait.PyNativeType.html" title="trait pyo3::PyNativeType">PyNativeType</a>,&nbsp;</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><div class="impl-items"><h4 id="method.try_from" class="method hidden"><code>pub fn <a href="../../../pyo3/conversion/trait.PyTryFrom.html#tymethod.try_from" class="fnname">try_from</a>&lt;V&gt;(V) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'v </a>T, <a class="struct" href="../../../pyo3/struct.PyDowncastError.html" title="struct pyo3::PyDowncastError">PyDowncastError</a>&lt;'v&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;V: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;&amp;'v <a class="struct" href="../../../pyo3/prelude/struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>&gt;,&nbsp;</span></code><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"><code>pub fn <a href="../../../pyo3/conversion/trait.PyTryFrom.html#tymethod.try_from_exact" class="fnname">try_from_exact</a>&lt;V&gt;(V) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'v </a>T, <a class="struct" href="../../../pyo3/struct.PyDowncastError.html" title="struct pyo3::PyDowncastError">PyDowncastError</a>&lt;'v&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;V: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;&amp;'v <a class="struct" href="../../../pyo3/prelude/struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>&gt;,&nbsp;</span></code><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"><code>pub unsafe fn <a href="../../../pyo3/conversion/trait.PyTryFrom.html#tymethod.try_from_unchecked" class="fnname">try_from_unchecked</a>&lt;V&gt;(V) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'v </a>T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;V: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;&amp;'v <a class="struct" href="../../../pyo3/prelude/struct.PyAny.html" title="struct pyo3::prelude::PyAny">PyAny</a>&gt;,&nbsp;</span></code><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="../../../pyo3/conversion/trait.PyTryFrom.html#tymethod.try_from_unchecked">Read more</a></p>
</div></div><h3 id="impl-PyTypeObject" class="impl"><code class="in-band">impl&lt;T&gt; <a class="trait" href="../../../pyo3/type_object/trait.PyTypeObject.html" title="trait pyo3::type_object::PyTypeObject">PyTypeObject</a> for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="../../../pyo3/type_object/trait.PyTypeInfo.html" title="trait pyo3::type_object::PyTypeInfo">PyTypeInfo</a>,&nbsp;</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><div class="impl-items"><h4 id="method.type_object" class="method hidden"><code>pub fn <a href="../../../pyo3/type_object/trait.PyTypeObject.html#tymethod.type_object" class="fnname">type_object</a>(<a class="struct" href="../../../pyo3/prelude/struct.Python.html" title="struct pyo3::prelude::Python">Python</a>&lt;'_&gt;) -&gt; &amp;<a class="struct" href="../../../pyo3/types/struct.PyType.html" title="struct pyo3::types::PyType">PyType</a></code><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><h3 id="impl-ToBorrowedObject" class="impl"><code class="in-band">impl&lt;T&gt; <a class="trait" href="../../../pyo3/conversion/trait.ToBorrowedObject.html" title="trait pyo3::conversion::ToBorrowedObject">ToBorrowedObject</a> for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="../../../pyo3/conversion/trait.ToPyObject.html" title="trait pyo3::conversion::ToPyObject">ToPyObject</a>,&nbsp;</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><div class="impl-items"><h4 id="method.with_borrowed_ptr" class="method hidden"><code>fn <a href="../../../pyo3/conversion/trait.ToBorrowedObject.html#method.with_borrowed_ptr" class="fnname">with_borrowed_ptr</a>&lt;F, R&gt;(&amp;self, py: <a class="struct" href="../../../pyo3/prelude/struct.Python.html" title="struct pyo3::prelude::Python">Python</a>&lt;'_&gt;, f: F) -&gt; R <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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="../../../pyo3/ffi/struct.PyObject.html" title="struct pyo3::ffi::PyObject">PyObject</a>) -&gt; R,&nbsp;</span></code><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="../../../pyo3/conversion/trait.ToBorrowedObject.html#method.with_borrowed_ptr">Read more</a></p>
</div></div><h3 id="impl-ToString" class="impl"><code class="in-band">impl&lt;T&gt; <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>&nbsp;&nbsp;&nbsp;&nbsp;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>,&nbsp;</span></code><a href="#impl-ToString" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/alloc/string.rs.html#2261-2274" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.to_string" class="method hidden"><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>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/alloc/string.rs.html#2267" 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><h3 id="impl-TryFrom%3CU%3E" class="impl"><code class="in-band">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;T&gt;,&nbsp;</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><div class="impl-items"><h4 id="associatedtype.Error" class="type"><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></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"><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) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;T, &lt;T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<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>&gt;</code><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><h3 id="impl-TryInto%3CU%3E" class="impl"><code class="in-band">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a>&lt;U&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;,&nbsp;</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><div class="impl-items"><h4 id="associatedtype.Error-1" class="type"><code>type <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error" class="type">Error</a> = &lt;U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<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></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
</div><h4 id="method.try_into" class="method hidden"><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) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;U, &lt;U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<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>&gt;</code><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></div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="pyo3" data-search-js="../../../search-index.js"></div>
<script src="../../../main.js"></script></body></html>