46 lines
98 KiB
HTML
46 lines
98 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Extract a type from a Python object."><title>FromPyObject in pyo3::conversion - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-46132b98.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="pyo3" data-themes="" data-resource-suffix="" data-rustdoc-version="1.85.1 (4eb161250 2025-03-15)" data-channel="1.85.1" data-search-js="search-75f5ac3e.js" data-settings-js="settings-0f613d39.js" ><script src="../../static.files/storage-59e33391.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-5f194d8c.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-893ab5e7.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../pyo3/index.html">pyo3</a><span class="version">0.24.1</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">From<wbr>PyObject</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#examples" title="Examples">Examples</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.extract_bound" title="extract_bound">extract_bound</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-FromPyObject%3C'py%3E-for-(T0,+T1)" title="(T0, T1)">(T0, T1)</a></li><li><a href="#impl-FromPyObject%3C'py%3E-for-(T0,+T1,+T2)" title="(T0, T1, T2)">(T0, T1, T2)</a></li><li><a href="#impl-FromPyObject%3C'py%3E-for-(T0,+T1,+T2,+T3)" title="(T0, T1, T2, T3)">(T0, T1, T2, T3)</a></li><li><a href="#impl-FromPyObject%3C'py%3E-for-(T0,+T1,+T2,+T3,+T4)" title="(T0, T1, T2, T3, T4)">(T0, T1, T2, T3, T4)</a></li><li><a href="#impl-FromPyObject%3C'py%3E-for-(T0,+T1,+T2,+T3,+T4,+T5)" title="(T0, T1, T2, T3, T4, T5)">(T0, T1, T2, T3, T4, T5)</a></li><li><a href="#impl-FromPyObject%3C'py%3E-for-(T0,+T1,+T2,+T3,+T4,+T5,+T6)" title="(T0, T1, T2, T3, T4, T5, T6)">(T0, T1, T2, T3, T4, T5, T6)</a></li><li><a href="#impl-FromPyObject%3C'py%3E-for-(T0,+T1,+T2,+T3,+T4,+T5,+T6,+T7)" title="(T0, T1, T2, T3, T4, T5, T6, T7)">(T0, T1, T2, T3, T4, T5, T6, T7)</a></li><li><a href="#impl-FromPyObject%3C'py%3E-for-(T0,+T1,+T2,+T3,+T4,+T5,+T6,+T7,+T8)" title="(T0, T1, T2, T3, T4, T5, T6, T7, T8)">(T0, T1, T2, T3, T4, T5, T6, T7, T8)</a></li><li><a href="#impl-FromPyObject%3C'py%3E-for-(T0,+T1,+T2,+T3,+T4,+T5,+T6,+T7,+T8,+T9)" title="(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)">(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)</a></li><li><a href="#impl-FromPyObject%3C'py%3E-for-(T0,+T1,+T2,+T3,+T4,+T5,+T6,+T7,+T8,+T9,+T10)" title="(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)">(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)</a></li><li><a href="#impl-FromPyObject%3C'py%3E-for-(T0,+T1,+T2,+T3,+T4,+T5,+T6,+T7,+T8,+T9,+T10,+T11)" title="(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)">(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)</a></li><li><a href="#impl-FromPyObject%3C'py%3E-for-(T0,)" title="(T0,)">(T0,)</a></li><li><a href="#impl-FromPyObject%3C'py%3E-for-BTreeMap%3CK,+V%3E" title="BTreeMap<K, V>">BTreeMap<K, V></a></li><li><a href="#impl-FromPyObject%3C'py%3E-for-BTreeSet%3CK%3E" title="BTreeSet<K>">BTreeSet<K></a></li><li><a href="#impl-FromPyObject%3C'py%3E-for-Cell%3CT%3E" title="Cell<T>">Cell<T></a></li><li><a href="#impl-FromPyObject%3C'_%3E-for-Duration" title="Duration">Duration</a></li><li><a href="#impl-FromPyObject%3C'py%3E-for-HashMap%3CK,+V,+S%3E" title="HashMap<K, V, S>">HashMap<K, V, S></a></li><li><a href="#impl-FromPyObject%3C'py%3E-for-HashSet%3CK,+S%3E" title="HashSet<K, S>">HashSet<K, S></a></li><li><a href="#impl-FromPyObject%3C'_%3E-for-IpAddr" title="IpAddr">IpAddr</a></li><li><a href="#impl-FromPyObject%3C'_%3E-for-NonZero%3Ci128%3E" title="NonZeroI128">NonZeroI128</a></li><li><a href="#impl-FromPyObject%3C'_%3E-for-NonZero%3Ci16%3E" title="NonZeroI16">NonZeroI16</a></li><li><a href="#impl-FromPyObject%3C'_%3E-for-NonZero%3Ci32%3E" title="NonZeroI32">NonZeroI32</a></li><li><a href="#impl-FromPyObject%3C'_%3E-for-NonZero%3Ci64%3E" title="NonZeroI64">NonZeroI64</a></li><li><a href="#impl-FromPyObject%3C'_%3E-for-NonZero%3Ci8%3E" title="NonZeroI8">NonZeroI8</a></li><li><a href="#impl-FromPyObject%3C'_%3E-for-NonZero%3Cisize%3E" title="NonZeroIsize">NonZeroIsize</a></li><li><a href="#impl-FromPyObject%3C'_%3E-for-NonZero%3Cu128%3E" title="NonZeroU128">NonZeroU128</a></li><li><a href="#impl-FromPyObject%3C'_%3E-for-NonZero%3Cu16%3E" title="NonZeroU16">NonZeroU16</a></li><li><a href="#impl-FromPyObject%3C'_%3E-for-NonZero%3Cu32%3E" title="NonZeroU32">NonZeroU32</a></li><li><a href="#impl-FromPyObject%3C'_%3E-for-NonZero%3Cu64%3E" title="NonZeroU64">NonZeroU64</a></li><li><a href="#impl-FromPyObject%3C'_%3E-for-NonZero%3Cu8%3E" title="NonZeroU8">NonZeroU8</a></li><li><a href="#impl-FromPyObject%3C'_%3E-for-NonZero%3Cusize%3E" title="NonZeroUsize">NonZeroUsize</a></li><li><a href="#impl-FromPyObject%3C'py%3E-for-Option%3CT%3E" title="Option<T>">Option<T></a></li><li><a href="#impl-FromPyObject%3C'_%3E-for-OsString" title="OsString">OsString</a></li><li><a href="#impl-FromPyObject%3C'_%3E-for-PathBuf" title="PathBuf">PathBuf</a></li><li><a href="#impl-FromPyObject%3C'_%3E-for-String" title="String">String</a></li><li><a href="#impl-FromPyObject%3C'_%3E-for-SystemTime" title="SystemTime">SystemTime</a></li><li><a href="#impl-FromPyObject%3C'py%3E-for-Vec%3CT%3E" title="Vec<T>">Vec<T></a></li><li><a href="#impl-FromPyObject%3C'py%3E-for-%5BT;+N%5D" title="[T; N]">[T; N]</a></li><li><a href="#impl-FromPyObject%3C'_%3E-for-bool" title="bool">bool</a></li><li><a href="#impl-FromPyObject%3C'_%3E-for-char" title="char">char</a></li><li><a href="#impl-FromPyObject%3C'py%3E-for-f32" title="f32">f32</a></li><li><a href="#impl-FromPyObject%3C'py%3E-for-f64" title="f64">f64</a></li><li><a href="#impl-FromPyObject%3C'_%3E-for-i128" title="i128">i128</a></li><li><a href="#impl-FromPyObject%3C'py%3E-for-i16" title="i16">i16</a></li><li><a href="#impl-FromPyObject%3C'py%3E-for-i32" title="i32">i32</a></li><li><a href="#impl-FromPyObject%3C'py%3E-for-i64" title="i64">i64</a></li><li><a href="#impl-FromPyObject%3C'py%3E-for-i8" title="i8">i8</a></li><li><a href="#impl-FromPyObject%3C'py%3E-for-isize" title="isize">isize</a></li><li><a href="#impl-FromPyObject%3C'_%3E-for-u128" title="u128">u128</a></li><li><a href="#impl-FromPyObject%3C'py%3E-for-u16" title="u16">u16</a></li><li><a href="#impl-FromPyObject%3C'py%3E-for-u32" title="u32">u32</a></li><li><a href="#impl-FromPyObject%3C'_%3E-for-u64" title="u64">u64</a></li><li><a href="#impl-FromPyObject%3C'_%3E-for-u8" title="u8">u8</a></li><li><a href="#impl-FromPyObject%3C'_%3E-for-usize" title="usize">usize</a></li></ul><h3><a href="#dyn-compatibility">Dyn Compatibility</a></h3><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In pyo3::<wbr>conversion</a></h2></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><span class="rustdoc-breadcrumbs"><a href="../index.html">pyo3</a>::<wbr><a href="index.html">conversion</a></span><h1>Trait <span class="trait">FromPyObject</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/pyo3/conversion.rs.html#447-466">Source</a> </span></div><pre class="rust item-decl"><code>pub trait FromPyObject<'py>: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> {
|
||
// Required method
|
||
fn <a href="#tymethod.extract_bound" class="fn">extract_bound</a>(ob: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny">PyAny</a>>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><Self>;
|
||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Extract a type from a Python object.</p>
|
||
<p>Normal usage is through the <code>extract</code> methods on <a href="../struct.Bound.html" title="struct pyo3::Bound"><code>Bound</code></a> and <a href="../struct.Py.html" title="struct pyo3::Py"><code>Py</code></a>, which forward to this trait.</p>
|
||
<h2 id="examples"><a class="doc-anchor" href="#examples">§</a>Examples</h2>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>pyo3::prelude::<span class="kw-2">*</span>;
|
||
<span class="kw">use </span>pyo3::types::PyString;
|
||
|
||
Python::with_gil(|py| {
|
||
<span class="comment">// Calling `.extract()` on a `Bound` smart pointer
|
||
</span><span class="kw">let </span>obj: Bound<<span class="lifetime">'_</span>, PyString> = PyString::new(py, <span class="string">"blah"</span>);
|
||
<span class="kw">let </span>s: String = obj.extract()<span class="question-mark">?</span>;
|
||
|
||
<span class="comment">// Calling `.extract(py)` on a `Py` smart pointer
|
||
</span><span class="kw">let </span>obj: Py<PyString> = obj.unbind();
|
||
<span class="kw">let </span>s: String = obj.extract(py)<span class="question-mark">?</span>;
|
||
})</code></pre></div>
|
||
<p>During the migration of PyO3 from the “GIL Refs” API to the <code>Bound<T></code> smart pointer, this trait
|
||
has two methods <code>extract</code> and <code>extract_bound</code> which are defaulted to call each other. To avoid
|
||
infinite recursion, implementors must implement at least one of these methods. The recommendation
|
||
is to implement <code>extract_bound</code> and leave <code>extract</code> as the default implementation.</p>
|
||
</div></details><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.extract_bound" class="method"><a class="src rightside" href="../../src/pyo3/conversion.rs.html#452">Source</a><h4 class="code-header">fn <a href="#tymethod.extract_bound" class="fn">extract_bound</a>(ob: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny">PyAny</a>>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><Self></h4></section></summary><div class="docblock"><p>Extracts <code>Self</code> from the bound smart pointer <code>obj</code>.</p>
|
||
<p>Implementors are encouraged to implement this method and leave <code>extract</code> defaulted, as
|
||
this will be most compatible with PyO3’s future API.</p>
|
||
</div></details></div><h2 id="dyn-compatibility" class="section-header">Dyn Compatibility<a href="#dyn-compatibility" class="anchor">§</a></h2><div class="dyn-compatibility-info"><p>This trait is <b>not</b> <a href="https://doc.rust-lang.org/1.85.1/reference/items/traits.html#object-safety">dyn compatible</a>.</p><p><i>In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.</i></p></div><h2 id="foreign-impls" class="section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-FromPyObject%3C'_%3E-for-IpAddr" class="impl"><a class="src rightside" href="../../src/pyo3/conversions/std/ipaddr.rs.html#14-32">Source</a><a href="#impl-FromPyObject%3C'_%3E-for-IpAddr" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'_> for <a class="enum" href="https://doc.rust-lang.org/1.85.1/core/net/ip_addr/enum.IpAddr.html" title="enum core::net::ip_addr::IpAddr">IpAddr</a></h3></section></summary><div class="impl-items"><section id="method.extract_bound" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/conversions/std/ipaddr.rs.html#15-31">Source</a><a href="#method.extract_bound" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.extract_bound" class="fn">extract_bound</a>(obj: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny">PyAny</a>>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><Self></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromPyObject%3C'_%3E-for-bool" class="impl"><a class="src rightside" href="../../src/pyo3/types/boolobject.rs.html#200-258">Source</a><a href="#impl-FromPyObject%3C'_%3E-for-bool" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'_> for <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h3><div class="docblock"><p>Converts a Python <code>bool</code> to a Rust <code>bool</code>.</p>
|
||
</div></section></summary><div class="docblock"><p>Fails with <code>TypeError</code> if the input is not a Python <code>bool</code>.</p>
|
||
</div><div class="impl-items"><section id="method.extract_bound-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/boolobject.rs.html#201-252">Source</a><a href="#method.extract_bound-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.extract_bound" class="fn">extract_bound</a>(obj: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny">PyAny</a>>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><Self></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromPyObject%3C'_%3E-for-char" class="impl"><a class="src rightside" href="../../src/pyo3/conversions/std/string.rs.html#263-280">Source</a><a href="#impl-FromPyObject%3C'_%3E-for-char" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'_> for <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.char.html">char</a></h3></section></summary><div class="impl-items"><section id="method.extract_bound-2" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/conversions/std/string.rs.html#264-274">Source</a><a href="#method.extract_bound-2" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.extract_bound" class="fn">extract_bound</a>(obj: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny">PyAny</a>>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><Self></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromPyObject%3C'_%3E-for-i128" class="impl"><a class="src rightside" href="../../src/pyo3/conversions/std/num.rs.html#500">Source</a><a href="#impl-FromPyObject%3C'_%3E-for-i128" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'_> for <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.i128.html">i128</a></h3></section></summary><div class="impl-items"><section id="method.extract_bound-3" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/conversions/std/num.rs.html#500">Source</a><a href="#method.extract_bound-3" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.extract_bound" class="fn">extract_bound</a>(ob: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny">PyAny</a>>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.i128.html">i128</a>></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromPyObject%3C'_%3E-for-u8" class="impl"><a class="src rightside" href="../../src/pyo3/conversions/std/num.rs.html#307-317">Source</a><a href="#impl-FromPyObject%3C'_%3E-for-u8" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'_> for <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.u8.html">u8</a></h3></section></summary><div class="impl-items"><section id="method.extract_bound-4" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/conversions/std/num.rs.html#308-311">Source</a><a href="#method.extract_bound-4" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.extract_bound" class="fn">extract_bound</a>(obj: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny">PyAny</a>>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><Self></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromPyObject%3C'_%3E-for-u64" class="impl"><a class="src rightside" href="../../src/pyo3/conversions/std/num.rs.html#345-350">Source</a><a href="#impl-FromPyObject%3C'_%3E-for-u64" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'_> for <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.u64.html">u64</a></h3></section></summary><div class="impl-items"><section id="method.extract_bound-5" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/conversions/std/num.rs.html#345-350">Source</a><a href="#method.extract_bound-5" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.extract_bound" class="fn">extract_bound</a>(obj: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny">PyAny</a>>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.u64.html">u64</a>></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromPyObject%3C'_%3E-for-u128" class="impl"><a class="src rightside" href="../../src/pyo3/conversions/std/num.rs.html#501">Source</a><a href="#impl-FromPyObject%3C'_%3E-for-u128" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'_> for <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.u128.html">u128</a></h3></section></summary><div class="impl-items"><section id="method.extract_bound-6" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/conversions/std/num.rs.html#501">Source</a><a href="#method.extract_bound-6" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.extract_bound" class="fn">extract_bound</a>(ob: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny">PyAny</a>>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.u128.html">u128</a>></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromPyObject%3C'_%3E-for-usize" class="impl"><a class="src rightside" href="../../src/pyo3/conversions/std/num.rs.html#342">Source</a><a href="#impl-FromPyObject%3C'_%3E-for-usize" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'_> for <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.usize.html">usize</a></h3></section></summary><div class="impl-items"><section id="method.extract_bound-7" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/conversions/std/num.rs.html#342">Source</a><a href="#method.extract_bound-7" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.extract_bound" class="fn">extract_bound</a>(obj: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny">PyAny</a>>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><Self></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromPyObject%3C'_%3E-for-String" class="impl"><a class="src rightside" href="../../src/pyo3/conversions/std/string.rs.html#252-261">Source</a><a href="#impl-FromPyObject%3C'_%3E-for-String" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'_> for <a class="struct" href="https://doc.rust-lang.org/1.85.1/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></h3><div class="docblock"><p>Allows extracting strings from Python objects.
|
||
Accepts Python <code>str</code> and <code>unicode</code> objects.</p>
|
||
</div></section></summary><div class="impl-items"><section id="method.extract_bound-8" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/conversions/std/string.rs.html#253-255">Source</a><a href="#method.extract_bound-8" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.extract_bound" class="fn">extract_bound</a>(obj: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny">PyAny</a>>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><Self></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromPyObject%3C'_%3E-for-Duration" class="impl"><a class="src rightside" href="../../src/pyo3/conversions/std/time.rs.html#18-53">Source</a><a href="#impl-FromPyObject%3C'_%3E-for-Duration" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'_> for <a class="struct" href="https://doc.rust-lang.org/1.85.1/core/time/struct.Duration.html" title="struct core::time::Duration">Duration</a></h3></section></summary><div class="impl-items"><section id="method.extract_bound-9" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/conversions/std/time.rs.html#19-52">Source</a><a href="#method.extract_bound-9" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.extract_bound" class="fn">extract_bound</a>(obj: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny">PyAny</a>>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><Self></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromPyObject%3C'_%3E-for-OsString" class="impl"><a class="src rightside" href="../../src/pyo3/conversions/std/osstr.rs.html#84-135">Source</a><a href="#impl-FromPyObject%3C'_%3E-for-OsString" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'_> for <a class="struct" href="https://doc.rust-lang.org/1.85.1/std/ffi/os_str/struct.OsString.html" title="struct std::ffi::os_str::OsString">OsString</a></h3></section></summary><div class="impl-items"><section id="method.extract_bound-10" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/conversions/std/osstr.rs.html#85-134">Source</a><a href="#method.extract_bound-10" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.extract_bound" class="fn">extract_bound</a>(ob: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny">PyAny</a>>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><Self></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromPyObject%3C'_%3E-for-PathBuf" class="impl"><a class="src rightside" href="../../src/pyo3/conversions/std/path.rs.html#23-29">Source</a><a href="#impl-FromPyObject%3C'_%3E-for-PathBuf" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'_> for <a class="struct" href="https://doc.rust-lang.org/1.85.1/std/path/struct.PathBuf.html" title="struct std::path::PathBuf">PathBuf</a></h3></section></summary><div class="impl-items"><section id="method.extract_bound-11" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/conversions/std/path.rs.html#24-28">Source</a><a href="#method.extract_bound-11" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.extract_bound" class="fn">extract_bound</a>(ob: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny">PyAny</a>>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><Self></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromPyObject%3C'_%3E-for-SystemTime" class="impl"><a class="src rightside" href="../../src/pyo3/conversions/std/time.rs.html#124-135">Source</a><a href="#impl-FromPyObject%3C'_%3E-for-SystemTime" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'_> for <a class="struct" href="https://doc.rust-lang.org/1.85.1/std/time/struct.SystemTime.html" title="struct std::time::SystemTime">SystemTime</a></h3></section></summary><div class="impl-items"><section id="method.extract_bound-12" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/conversions/std/time.rs.html#125-134">Source</a><a href="#method.extract_bound-12" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.extract_bound" class="fn">extract_bound</a>(obj: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny">PyAny</a>>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><Self></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromPyObject%3C'_%3E-for-NonZero%3Ci8%3E" class="impl"><a class="src rightside" href="../../src/pyo3/conversions/std/num.rs.html#680">Source</a><a href="#impl-FromPyObject%3C'_%3E-for-NonZero%3Ci8%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'_> for <a class="type" href="https://doc.rust-lang.org/1.85.1/core/num/nonzero/type.NonZeroI8.html" title="type core::num::nonzero::NonZeroI8">NonZeroI8</a></h3></section></summary><div class="impl-items"><section id="method.extract_bound-13" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/conversions/std/num.rs.html#680">Source</a><a href="#method.extract_bound-13" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.extract_bound" class="fn">extract_bound</a>(obj: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny">PyAny</a>>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><Self></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromPyObject%3C'_%3E-for-NonZero%3Ci16%3E" class="impl"><a class="src rightside" href="../../src/pyo3/conversions/std/num.rs.html#681">Source</a><a href="#impl-FromPyObject%3C'_%3E-for-NonZero%3Ci16%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'_> for <a class="type" href="https://doc.rust-lang.org/1.85.1/core/num/nonzero/type.NonZeroI16.html" title="type core::num::nonzero::NonZeroI16">NonZeroI16</a></h3></section></summary><div class="impl-items"><section id="method.extract_bound-14" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/conversions/std/num.rs.html#681">Source</a><a href="#method.extract_bound-14" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.extract_bound" class="fn">extract_bound</a>(obj: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny">PyAny</a>>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><Self></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromPyObject%3C'_%3E-for-NonZero%3Ci32%3E" class="impl"><a class="src rightside" href="../../src/pyo3/conversions/std/num.rs.html#682">Source</a><a href="#impl-FromPyObject%3C'_%3E-for-NonZero%3Ci32%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'_> for <a class="type" href="https://doc.rust-lang.org/1.85.1/core/num/nonzero/type.NonZeroI32.html" title="type core::num::nonzero::NonZeroI32">NonZeroI32</a></h3></section></summary><div class="impl-items"><section id="method.extract_bound-15" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/conversions/std/num.rs.html#682">Source</a><a href="#method.extract_bound-15" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.extract_bound" class="fn">extract_bound</a>(obj: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny">PyAny</a>>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><Self></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromPyObject%3C'_%3E-for-NonZero%3Ci64%3E" class="impl"><a class="src rightside" href="../../src/pyo3/conversions/std/num.rs.html#683">Source</a><a href="#impl-FromPyObject%3C'_%3E-for-NonZero%3Ci64%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'_> for <a class="type" href="https://doc.rust-lang.org/1.85.1/core/num/nonzero/type.NonZeroI64.html" title="type core::num::nonzero::NonZeroI64">NonZeroI64</a></h3></section></summary><div class="impl-items"><section id="method.extract_bound-16" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/conversions/std/num.rs.html#683">Source</a><a href="#method.extract_bound-16" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.extract_bound" class="fn">extract_bound</a>(obj: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny">PyAny</a>>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><Self></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromPyObject%3C'_%3E-for-NonZero%3Ci128%3E" class="impl"><a class="src rightside" href="../../src/pyo3/conversions/std/num.rs.html#684">Source</a><a href="#impl-FromPyObject%3C'_%3E-for-NonZero%3Ci128%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'_> for <a class="type" href="https://doc.rust-lang.org/1.85.1/core/num/nonzero/type.NonZeroI128.html" title="type core::num::nonzero::NonZeroI128">NonZeroI128</a></h3></section></summary><div class="impl-items"><section id="method.extract_bound-17" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/conversions/std/num.rs.html#684">Source</a><a href="#method.extract_bound-17" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.extract_bound" class="fn">extract_bound</a>(obj: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny">PyAny</a>>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><Self></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromPyObject%3C'_%3E-for-NonZero%3Cisize%3E" class="impl"><a class="src rightside" href="../../src/pyo3/conversions/std/num.rs.html#685">Source</a><a href="#impl-FromPyObject%3C'_%3E-for-NonZero%3Cisize%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'_> for <a class="type" href="https://doc.rust-lang.org/1.85.1/core/num/nonzero/type.NonZeroIsize.html" title="type core::num::nonzero::NonZeroIsize">NonZeroIsize</a></h3></section></summary><div class="impl-items"><section id="method.extract_bound-18" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/conversions/std/num.rs.html#685">Source</a><a href="#method.extract_bound-18" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.extract_bound" class="fn">extract_bound</a>(obj: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny">PyAny</a>>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><Self></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromPyObject%3C'_%3E-for-NonZero%3Cu8%3E" class="impl"><a class="src rightside" href="../../src/pyo3/conversions/std/num.rs.html#686">Source</a><a href="#impl-FromPyObject%3C'_%3E-for-NonZero%3Cu8%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'_> for <a class="type" href="https://doc.rust-lang.org/1.85.1/core/num/nonzero/type.NonZeroU8.html" title="type core::num::nonzero::NonZeroU8">NonZeroU8</a></h3></section></summary><div class="impl-items"><section id="method.extract_bound-19" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/conversions/std/num.rs.html#686">Source</a><a href="#method.extract_bound-19" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.extract_bound" class="fn">extract_bound</a>(obj: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny">PyAny</a>>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><Self></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromPyObject%3C'_%3E-for-NonZero%3Cu16%3E" class="impl"><a class="src rightside" href="../../src/pyo3/conversions/std/num.rs.html#687">Source</a><a href="#impl-FromPyObject%3C'_%3E-for-NonZero%3Cu16%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'_> for <a class="type" href="https://doc.rust-lang.org/1.85.1/core/num/nonzero/type.NonZeroU16.html" title="type core::num::nonzero::NonZeroU16">NonZeroU16</a></h3></section></summary><div class="impl-items"><section id="method.extract_bound-20" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/conversions/std/num.rs.html#687">Source</a><a href="#method.extract_bound-20" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.extract_bound" class="fn">extract_bound</a>(obj: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny">PyAny</a>>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><Self></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromPyObject%3C'_%3E-for-NonZero%3Cu32%3E" class="impl"><a class="src rightside" href="../../src/pyo3/conversions/std/num.rs.html#688">Source</a><a href="#impl-FromPyObject%3C'_%3E-for-NonZero%3Cu32%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'_> for <a class="type" href="https://doc.rust-lang.org/1.85.1/core/num/nonzero/type.NonZeroU32.html" title="type core::num::nonzero::NonZeroU32">NonZeroU32</a></h3></section></summary><div class="impl-items"><section id="method.extract_bound-21" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/conversions/std/num.rs.html#688">Source</a><a href="#method.extract_bound-21" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.extract_bound" class="fn">extract_bound</a>(obj: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny">PyAny</a>>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><Self></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromPyObject%3C'_%3E-for-NonZero%3Cu64%3E" class="impl"><a class="src rightside" href="../../src/pyo3/conversions/std/num.rs.html#689">Source</a><a href="#impl-FromPyObject%3C'_%3E-for-NonZero%3Cu64%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'_> for <a class="type" href="https://doc.rust-lang.org/1.85.1/core/num/nonzero/type.NonZeroU64.html" title="type core::num::nonzero::NonZeroU64">NonZeroU64</a></h3></section></summary><div class="impl-items"><section id="method.extract_bound-22" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/conversions/std/num.rs.html#689">Source</a><a href="#method.extract_bound-22" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.extract_bound" class="fn">extract_bound</a>(obj: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny">PyAny</a>>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><Self></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromPyObject%3C'_%3E-for-NonZero%3Cu128%3E" class="impl"><a class="src rightside" href="../../src/pyo3/conversions/std/num.rs.html#690">Source</a><a href="#impl-FromPyObject%3C'_%3E-for-NonZero%3Cu128%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'_> for <a class="type" href="https://doc.rust-lang.org/1.85.1/core/num/nonzero/type.NonZeroU128.html" title="type core::num::nonzero::NonZeroU128">NonZeroU128</a></h3></section></summary><div class="impl-items"><section id="method.extract_bound-23" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/conversions/std/num.rs.html#690">Source</a><a href="#method.extract_bound-23" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.extract_bound" class="fn">extract_bound</a>(obj: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny">PyAny</a>>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><Self></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromPyObject%3C'_%3E-for-NonZero%3Cusize%3E" class="impl"><a class="src rightside" href="../../src/pyo3/conversions/std/num.rs.html#691">Source</a><a href="#impl-FromPyObject%3C'_%3E-for-NonZero%3Cusize%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'_> for <a class="type" href="https://doc.rust-lang.org/1.85.1/core/num/nonzero/type.NonZeroUsize.html" title="type core::num::nonzero::NonZeroUsize">NonZeroUsize</a></h3></section></summary><div class="impl-items"><section id="method.extract_bound-24" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/conversions/std/num.rs.html#691">Source</a><a href="#method.extract_bound-24" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.extract_bound" class="fn">extract_bound</a>(obj: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny">PyAny</a>>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><Self></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromPyObject%3C'py%3E-for-f32" class="impl"><a class="src rightside" href="../../src/pyo3/types/float.rs.html#207-216">Source</a><a href="#impl-FromPyObject%3C'py%3E-for-f32" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py> for <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.f32.html">f32</a></h3></section></summary><div class="impl-items"><section id="method.extract_bound-25" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/float.rs.html#208-210">Source</a><a href="#method.extract_bound-25" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.extract_bound" class="fn">extract_bound</a>(obj: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny">PyAny</a>>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><Self></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromPyObject%3C'py%3E-for-f64" class="impl"><a class="src rightside" href="../../src/pyo3/types/float.rs.html#129-157">Source</a><a href="#impl-FromPyObject%3C'py%3E-for-f64" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py> for <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.f64.html">f64</a></h3></section></summary><div class="impl-items"><section id="method.extract_bound-26" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/float.rs.html#132-151">Source</a><a href="#method.extract_bound-26" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.extract_bound" class="fn">extract_bound</a>(obj: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny">PyAny</a>>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><Self></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromPyObject%3C'py%3E-for-i8" class="impl"><a class="src rightside" href="../../src/pyo3/conversions/std/num.rs.html#319">Source</a><a href="#impl-FromPyObject%3C'py%3E-for-i8" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py> for <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.i8.html">i8</a></h3></section></summary><div class="impl-items"><section id="method.extract_bound-27" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/conversions/std/num.rs.html#319">Source</a><a href="#method.extract_bound-27" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.extract_bound" class="fn">extract_bound</a>(obj: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny">PyAny</a>>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><Self></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromPyObject%3C'py%3E-for-i16" class="impl"><a class="src rightside" href="../../src/pyo3/conversions/std/num.rs.html#320">Source</a><a href="#impl-FromPyObject%3C'py%3E-for-i16" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py> for <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.i16.html">i16</a></h3></section></summary><div class="impl-items"><section id="method.extract_bound-28" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/conversions/std/num.rs.html#320">Source</a><a href="#method.extract_bound-28" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.extract_bound" class="fn">extract_bound</a>(obj: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny">PyAny</a>>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><Self></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromPyObject%3C'py%3E-for-i32" class="impl"><a class="src rightside" href="../../src/pyo3/conversions/std/num.rs.html#322">Source</a><a href="#impl-FromPyObject%3C'py%3E-for-i32" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py> for <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.i32.html">i32</a></h3></section></summary><div class="impl-items"><section id="method.extract_bound-29" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/conversions/std/num.rs.html#322">Source</a><a href="#method.extract_bound-29" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.extract_bound" class="fn">extract_bound</a>(obj: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny">PyAny</a>>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><Self></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromPyObject%3C'py%3E-for-i64" class="impl"><a class="src rightside" href="../../src/pyo3/conversions/std/num.rs.html#331">Source</a><a href="#impl-FromPyObject%3C'py%3E-for-i64" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py> for <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.i64.html">i64</a></h3></section></summary><div class="impl-items"><section id="method.extract_bound-30" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/conversions/std/num.rs.html#331">Source</a><a href="#method.extract_bound-30" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.extract_bound" class="fn">extract_bound</a>(obj: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny">PyAny</a>>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><Self></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromPyObject%3C'py%3E-for-isize" class="impl"><a class="src rightside" href="../../src/pyo3/conversions/std/num.rs.html#338">Source</a><a href="#impl-FromPyObject%3C'py%3E-for-isize" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py> for <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.isize.html">isize</a></h3></section></summary><div class="impl-items"><section id="method.extract_bound-31" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/conversions/std/num.rs.html#338">Source</a><a href="#method.extract_bound-31" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.extract_bound" class="fn">extract_bound</a>(obj: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny">PyAny</a>>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><Self></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromPyObject%3C'py%3E-for-u16" class="impl"><a class="src rightside" href="../../src/pyo3/conversions/std/num.rs.html#321">Source</a><a href="#impl-FromPyObject%3C'py%3E-for-u16" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py> for <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.u16.html">u16</a></h3></section></summary><div class="impl-items"><section id="method.extract_bound-32" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/conversions/std/num.rs.html#321">Source</a><a href="#method.extract_bound-32" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.extract_bound" class="fn">extract_bound</a>(obj: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny">PyAny</a>>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><Self></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromPyObject%3C'py%3E-for-u32" class="impl"><a class="src rightside" href="../../src/pyo3/conversions/std/num.rs.html#326">Source</a><a href="#impl-FromPyObject%3C'py%3E-for-u32" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py> for <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.u32.html">u32</a></h3></section></summary><div class="impl-items"><section id="method.extract_bound-33" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/conversions/std/num.rs.html#326">Source</a><a href="#method.extract_bound-33" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.extract_bound" class="fn">extract_bound</a>(obj: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny">PyAny</a>>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><Self></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromPyObject%3C'py%3E-for-BTreeSet%3CK%3E" class="impl"><a class="src rightside" href="../../src/pyo3/conversions/std/set.rs.html#169-190">Source</a><a href="#impl-FromPyObject%3C'py%3E-for-BTreeSet%3CK%3E" class="anchor">§</a><h3 class="code-header">impl<'py, K> <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py> for <a class="struct" href="https://doc.rust-lang.org/1.85.1/alloc/collections/btree/set/struct.BTreeSet.html" title="struct alloc::collections::btree::set::BTreeSet">BTreeSet</a><K><div class="where">where
|
||
K: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py> + <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>,</div></h3></section></summary><div class="impl-items"><section id="method.extract_bound-34" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/conversions/std/set.rs.html#173-184">Source</a><a href="#method.extract_bound-34" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.extract_bound" class="fn">extract_bound</a>(ob: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny">PyAny</a>>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><Self></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromPyObject%3C'py%3E-for-HashSet%3CK,+S%3E" class="impl"><a class="src rightside" href="../../src/pyo3/conversions/std/set.rs.html#96-118">Source</a><a href="#impl-FromPyObject%3C'py%3E-for-HashSet%3CK,+S%3E" class="anchor">§</a><h3 class="code-header">impl<'py, K, S> <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py> for <a class="struct" href="https://doc.rust-lang.org/1.85.1/std/collections/hash/set/struct.HashSet.html" title="struct std::collections::hash::set::HashSet">HashSet</a><K, S><div class="where">where
|
||
K: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py> + <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a>,
|
||
S: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/hash/trait.BuildHasher.html" title="trait core::hash::BuildHasher">BuildHasher</a> + <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/default/trait.Default.html" title="trait core::default::Default">Default</a>,</div></h3></section></summary><div class="impl-items"><section id="method.extract_bound-35" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/conversions/std/set.rs.html#101-112">Source</a><a href="#method.extract_bound-35" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.extract_bound" class="fn">extract_bound</a>(ob: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny">PyAny</a>>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><Self></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromPyObject%3C'py%3E-for-BTreeMap%3CK,+V%3E" class="impl"><a class="src rightside" href="../../src/pyo3/conversions/std/map.rs.html#195-213">Source</a><a href="#impl-FromPyObject%3C'py%3E-for-BTreeMap%3CK,+V%3E" class="anchor">§</a><h3 class="code-header">impl<'py, K, V> <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py> for <a class="struct" href="https://doc.rust-lang.org/1.85.1/alloc/collections/btree/map/struct.BTreeMap.html" title="struct alloc::collections::btree::map::BTreeMap">BTreeMap</a><K, V><div class="where">where
|
||
K: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py> + <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>,
|
||
V: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>,</div></h3></section></summary><div class="impl-items"><section id="method.extract_bound-36" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/conversions/std/map.rs.html#200-207">Source</a><a href="#method.extract_bound-36" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.extract_bound" class="fn">extract_bound</a>(ob: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny">PyAny</a>>) -> <a class="enum" href="https://doc.rust-lang.org/1.85.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, <a class="struct" href="../struct.PyErr.html" title="struct pyo3::PyErr">PyErr</a>></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromPyObject%3C'py%3E-for-HashMap%3CK,+V,+S%3E" class="impl"><a class="src rightside" href="../../src/pyo3/conversions/std/map.rs.html#174-193">Source</a><a href="#impl-FromPyObject%3C'py%3E-for-HashMap%3CK,+V,+S%3E" class="anchor">§</a><h3 class="code-header">impl<'py, K, V, S> <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py> for <a class="struct" href="https://doc.rust-lang.org/1.85.1/std/collections/hash/map/struct.HashMap.html" title="struct std::collections::hash::map::HashMap">HashMap</a><K, V, S><div class="where">where
|
||
K: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py> + <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a>,
|
||
V: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>,
|
||
S: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/hash/trait.BuildHasher.html" title="trait core::hash::BuildHasher">BuildHasher</a> + <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/default/trait.Default.html" title="trait core::default::Default">Default</a>,</div></h3></section></summary><div class="impl-items"><section id="method.extract_bound-37" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/conversions/std/map.rs.html#180-187">Source</a><a href="#method.extract_bound-37" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.extract_bound" class="fn">extract_bound</a>(ob: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny">PyAny</a>>) -> <a class="enum" href="https://doc.rust-lang.org/1.85.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, <a class="struct" href="../struct.PyErr.html" title="struct pyo3::PyErr">PyErr</a>></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromPyObject%3C'py%3E-for-(T0,)" class="impl"><a class="src rightside" href="../../src/pyo3/types/tuple.rs.html#988">Source</a><a href="#impl-FromPyObject%3C'py%3E-for-(T0,)" class="anchor">§</a><h3 class="code-header">impl<'py, T0: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>> <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py> for <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.tuple.html">(T0,)</a></h3></section></summary><div class="impl-items"><section id="method.extract_bound-38" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/tuple.rs.html#988">Source</a><a href="#method.extract_bound-38" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.extract_bound" class="fn">extract_bound</a>(obj: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny">PyAny</a>>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><Self></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromPyObject%3C'py%3E-for-(T0,+T1)" class="impl"><a class="src rightside" href="../../src/pyo3/types/tuple.rs.html#989">Source</a><a href="#impl-FromPyObject%3C'py%3E-for-(T0,+T1)" class="anchor">§</a><h3 class="code-header">impl<'py, T0: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T1: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>> <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py> for <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.tuple.html">(T0, T1)</a></h3></section></summary><div class="impl-items"><section id="method.extract_bound-39" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/tuple.rs.html#989">Source</a><a href="#method.extract_bound-39" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.extract_bound" class="fn">extract_bound</a>(obj: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny">PyAny</a>>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><Self></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromPyObject%3C'py%3E-for-(T0,+T1,+T2)" class="impl"><a class="src rightside" href="../../src/pyo3/types/tuple.rs.html#990">Source</a><a href="#impl-FromPyObject%3C'py%3E-for-(T0,+T1,+T2)" class="anchor">§</a><h3 class="code-header">impl<'py, T0: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T1: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T2: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>> <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py> for <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.tuple.html">(T0, T1, T2)</a></h3></section></summary><div class="impl-items"><section id="method.extract_bound-40" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/tuple.rs.html#990">Source</a><a href="#method.extract_bound-40" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.extract_bound" class="fn">extract_bound</a>(obj: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny">PyAny</a>>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><Self></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromPyObject%3C'py%3E-for-(T0,+T1,+T2,+T3)" class="impl"><a class="src rightside" href="../../src/pyo3/types/tuple.rs.html#991-997">Source</a><a href="#impl-FromPyObject%3C'py%3E-for-(T0,+T1,+T2,+T3)" class="anchor">§</a><h3 class="code-header">impl<'py, T0: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T1: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T2: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T3: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>> <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py> for <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.tuple.html">(T0, T1, T2, T3)</a></h3></section></summary><div class="impl-items"><section id="method.extract_bound-41" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/tuple.rs.html#991-997">Source</a><a href="#method.extract_bound-41" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.extract_bound" class="fn">extract_bound</a>(obj: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny">PyAny</a>>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><Self></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromPyObject%3C'py%3E-for-(T0,+T1,+T2,+T3,+T4)" class="impl"><a class="src rightside" href="../../src/pyo3/types/tuple.rs.html#998-1005">Source</a><a href="#impl-FromPyObject%3C'py%3E-for-(T0,+T1,+T2,+T3,+T4)" class="anchor">§</a><h3 class="code-header">impl<'py, T0: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T1: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T2: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T3: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T4: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>> <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py> for <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.tuple.html">(T0, T1, T2, T3, T4)</a></h3></section></summary><div class="impl-items"><section id="method.extract_bound-42" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/tuple.rs.html#998-1005">Source</a><a href="#method.extract_bound-42" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.extract_bound" class="fn">extract_bound</a>(obj: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny">PyAny</a>>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><Self></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromPyObject%3C'py%3E-for-(T0,+T1,+T2,+T3,+T4,+T5)" class="impl"><a class="src rightside" href="../../src/pyo3/types/tuple.rs.html#1006-1014">Source</a><a href="#impl-FromPyObject%3C'py%3E-for-(T0,+T1,+T2,+T3,+T4,+T5)" class="anchor">§</a><h3 class="code-header">impl<'py, T0: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T1: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T2: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T3: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T4: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T5: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>> <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py> for <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.tuple.html">(T0, T1, T2, T3, T4, T5)</a></h3></section></summary><div class="impl-items"><section id="method.extract_bound-43" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/tuple.rs.html#1006-1014">Source</a><a href="#method.extract_bound-43" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.extract_bound" class="fn">extract_bound</a>(obj: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny">PyAny</a>>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><Self></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromPyObject%3C'py%3E-for-(T0,+T1,+T2,+T3,+T4,+T5,+T6)" class="impl"><a class="src rightside" href="../../src/pyo3/types/tuple.rs.html#1015-1024">Source</a><a href="#impl-FromPyObject%3C'py%3E-for-(T0,+T1,+T2,+T3,+T4,+T5,+T6)" class="anchor">§</a><h3 class="code-header">impl<'py, T0: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T1: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T2: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T3: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T4: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T5: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T6: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>> <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py> for <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.tuple.html">(T0, T1, T2, T3, T4, T5, T6)</a></h3></section></summary><div class="impl-items"><section id="method.extract_bound-44" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/tuple.rs.html#1015-1024">Source</a><a href="#method.extract_bound-44" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.extract_bound" class="fn">extract_bound</a>(obj: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny">PyAny</a>>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><Self></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromPyObject%3C'py%3E-for-(T0,+T1,+T2,+T3,+T4,+T5,+T6,+T7)" class="impl"><a class="src rightside" href="../../src/pyo3/types/tuple.rs.html#1025-1035">Source</a><a href="#impl-FromPyObject%3C'py%3E-for-(T0,+T1,+T2,+T3,+T4,+T5,+T6,+T7)" class="anchor">§</a><h3 class="code-header">impl<'py, T0: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T1: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T2: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T3: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T4: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T5: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T6: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T7: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>> <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py> for <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.tuple.html">(T0, T1, T2, T3, T4, T5, T6, T7)</a></h3></section></summary><div class="impl-items"><section id="method.extract_bound-45" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/tuple.rs.html#1025-1035">Source</a><a href="#method.extract_bound-45" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.extract_bound" class="fn">extract_bound</a>(obj: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny">PyAny</a>>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><Self></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromPyObject%3C'py%3E-for-(T0,+T1,+T2,+T3,+T4,+T5,+T6,+T7,+T8)" class="impl"><a class="src rightside" href="../../src/pyo3/types/tuple.rs.html#1036-1047">Source</a><a href="#impl-FromPyObject%3C'py%3E-for-(T0,+T1,+T2,+T3,+T4,+T5,+T6,+T7,+T8)" class="anchor">§</a><h3 class="code-header">impl<'py, T0: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T1: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T2: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T3: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T4: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T5: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T6: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T7: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T8: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>> <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py> for <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.tuple.html">(T0, T1, T2, T3, T4, T5, T6, T7, T8)</a></h3></section></summary><div class="impl-items"><section id="method.extract_bound-46" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/tuple.rs.html#1036-1047">Source</a><a href="#method.extract_bound-46" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.extract_bound" class="fn">extract_bound</a>(obj: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny">PyAny</a>>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><Self></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromPyObject%3C'py%3E-for-(T0,+T1,+T2,+T3,+T4,+T5,+T6,+T7,+T8,+T9)" class="impl"><a class="src rightside" href="../../src/pyo3/types/tuple.rs.html#1048-1060">Source</a><a href="#impl-FromPyObject%3C'py%3E-for-(T0,+T1,+T2,+T3,+T4,+T5,+T6,+T7,+T8,+T9)" class="anchor">§</a><h3 class="code-header">impl<'py, T0: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T1: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T2: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T3: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T4: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T5: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T6: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T7: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T8: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T9: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>> <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py> for <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.tuple.html">(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)</a></h3></section></summary><div class="impl-items"><section id="method.extract_bound-47" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/tuple.rs.html#1048-1060">Source</a><a href="#method.extract_bound-47" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.extract_bound" class="fn">extract_bound</a>(obj: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny">PyAny</a>>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><Self></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromPyObject%3C'py%3E-for-(T0,+T1,+T2,+T3,+T4,+T5,+T6,+T7,+T8,+T9,+T10)" class="impl"><a class="src rightside" href="../../src/pyo3/types/tuple.rs.html#1061-1074">Source</a><a href="#impl-FromPyObject%3C'py%3E-for-(T0,+T1,+T2,+T3,+T4,+T5,+T6,+T7,+T8,+T9,+T10)" class="anchor">§</a><h3 class="code-header">impl<'py, T0: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T1: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T2: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T3: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T4: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T5: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T6: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T7: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T8: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T9: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T10: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>> <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py> for <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.tuple.html">(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)</a></h3></section></summary><div class="impl-items"><section id="method.extract_bound-48" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/tuple.rs.html#1061-1074">Source</a><a href="#method.extract_bound-48" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.extract_bound" class="fn">extract_bound</a>(obj: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny">PyAny</a>>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><Self></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromPyObject%3C'py%3E-for-(T0,+T1,+T2,+T3,+T4,+T5,+T6,+T7,+T8,+T9,+T10,+T11)" class="impl"><a class="src rightside" href="../../src/pyo3/types/tuple.rs.html#1076-1090">Source</a><a href="#impl-FromPyObject%3C'py%3E-for-(T0,+T1,+T2,+T3,+T4,+T5,+T6,+T7,+T8,+T9,+T10,+T11)" class="anchor">§</a><h3 class="code-header">impl<'py, T0: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T1: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T2: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T3: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T4: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T5: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T6: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T7: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T8: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T9: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T10: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>, T11: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>> <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py> for <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.tuple.html">(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)</a></h3></section></summary><div class="impl-items"><section id="method.extract_bound-49" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/tuple.rs.html#1076-1090">Source</a><a href="#method.extract_bound-49" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.extract_bound" class="fn">extract_bound</a>(obj: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny">PyAny</a>>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><Self></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromPyObject%3C'py%3E-for-Option%3CT%3E" class="impl"><a class="src rightside" href="../../src/pyo3/conversions/std/option.rs.html#63-74">Source</a><a href="#impl-FromPyObject%3C'py%3E-for-Option%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<'py, T> <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py> for <a class="enum" href="https://doc.rust-lang.org/1.85.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><T><div class="where">where
|
||
T: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>,</div></h3></section></summary><div class="impl-items"><section id="method.extract_bound-50" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/conversions/std/option.rs.html#67-73">Source</a><a href="#method.extract_bound-50" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.extract_bound" class="fn">extract_bound</a>(obj: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny">PyAny</a>>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><Self></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromPyObject%3C'py%3E-for-Vec%3CT%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/sequence.rs.html#334-349">Source</a><a href="#impl-FromPyObject%3C'py%3E-for-Vec%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<'py, T> <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py> for <a class="struct" href="https://doc.rust-lang.org/1.85.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><T><div class="where">where
|
||
T: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>,</div></h3></section></summary><div class="impl-items"><section id="method.extract_bound-51" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/sequence.rs.html#338-343">Source</a><a href="#method.extract_bound-51" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.extract_bound" class="fn">extract_bound</a>(obj: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny">PyAny</a>>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><Self></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromPyObject%3C'py%3E-for-%5BT;+N%5D" class="impl"><a class="src rightside" href="../../src/pyo3/conversions/std/array.rs.html#82-89">Source</a><a href="#impl-FromPyObject%3C'py%3E-for-%5BT;+N%5D" class="anchor">§</a><h3 class="code-header">impl<'py, T, const N: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.usize.html">usize</a>> <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py> for <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.array.html">[T; N]</a><div class="where">where
|
||
T: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>,</div></h3></section></summary><div class="impl-items"><section id="method.extract_bound-52" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/conversions/std/array.rs.html#86-88">Source</a><a href="#method.extract_bound-52" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.extract_bound" class="fn">extract_bound</a>(obj: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny">PyAny</a>>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><Self></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromPyObject%3C'py%3E-for-Cell%3CT%3E" class="impl"><a class="src rightside" href="../../src/pyo3/conversions/std/cell.rs.html#44-48">Source</a><a href="#impl-FromPyObject%3C'py%3E-for-Cell%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<'py, T: <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>> <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py> for <a class="struct" href="https://doc.rust-lang.org/1.85.1/core/cell/struct.Cell.html" title="struct core::cell::Cell">Cell</a><T></h3></section></summary><div class="impl-items"><section id="method.extract_bound-53" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/conversions/std/cell.rs.html#45-47">Source</a><a href="#method.extract_bound-53" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.extract_bound" class="fn">extract_bound</a>(ob: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny">PyAny</a>>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><Self></h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-FromPyObject%3C'_%3E-for-PyBackedBytes" class="impl"><a class="src rightside" href="../../src/pyo3/pybacked.rs.html#230-240">Source</a><a href="#impl-FromPyObject%3C'_%3E-for-PyBackedBytes" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'_> for <a class="struct" href="../pybacked/struct.PyBackedBytes.html" title="struct pyo3::pybacked::PyBackedBytes">PyBackedBytes</a></h3></section><section id="impl-FromPyObject%3C'_%3E-for-PyBackedStr" class="impl"><a class="src rightside" href="../../src/pyo3/pybacked.rs.html#83-88">Source</a><a href="#impl-FromPyObject%3C'_%3E-for-PyBackedStr" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'_> for <a class="struct" href="../pybacked/struct.PyBackedStr.html" title="struct pyo3::pybacked::PyBackedStr">PyBackedStr</a></h3></section><section id="impl-FromPyObject%3C'py%3E-for-PyRef%3C'py,+T%3E" class="impl"><a class="src rightside" href="../../src/pyo3/conversion.rs.html#564-571">Source</a><a href="#impl-FromPyObject%3C'py%3E-for-PyRef%3C'py,+T%3E" class="anchor">§</a><h3 class="code-header">impl<'py, T> <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py> for <a class="struct" href="../pycell/struct.PyRef.html" title="struct pyo3::pycell::PyRef">PyRef</a><'py, T><div class="where">where
|
||
T: <a class="trait" href="../pyclass/trait.PyClass.html" title="trait pyo3::pyclass::PyClass">PyClass</a>,</div></h3></section><section id="impl-FromPyObject%3C'py%3E-for-PyRefMut%3C'py,+T%3E" class="impl"><a class="src rightside" href="../../src/pyo3/conversion.rs.html#573-580">Source</a><a href="#impl-FromPyObject%3C'py%3E-for-PyRefMut%3C'py,+T%3E" class="anchor">§</a><h3 class="code-header">impl<'py, T> <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py> for <a class="struct" href="../pycell/struct.PyRefMut.html" title="struct pyo3::pycell::PyRefMut">PyRefMut</a><'py, T><div class="where">where
|
||
T: <a class="trait" href="../pyclass/trait.PyClass.html" title="trait pyo3::pyclass::PyClass">PyClass</a><Frozen = False>,</div></h3></section><section id="impl-FromPyObject%3C'py%3E-for-Bound%3C'py,+T%3E" class="impl"><a class="src rightside" href="../../src/pyo3/instance.rs.html#1894-1902">Source</a><a href="#impl-FromPyObject%3C'py%3E-for-Bound%3C'py,+T%3E" class="anchor">§</a><h3 class="code-header">impl<'py, T> <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, T><div class="where">where
|
||
T: <a class="trait" href="../type_object/trait.PyTypeCheck.html" title="trait pyo3::type_object::PyTypeCheck">PyTypeCheck</a>,</div></h3></section><section id="impl-FromPyObject%3C'_%3E-for-Py%3CT%3E" class="impl"><a class="src rightside" href="../../src/pyo3/instance.rs.html#1884-1892">Source</a><a href="#impl-FromPyObject%3C'_%3E-for-Py%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'_> for <a class="struct" href="../struct.Py.html" title="struct pyo3::Py">Py</a><T><div class="where">where
|
||
T: <a class="trait" href="../type_object/trait.PyTypeCheck.html" title="trait pyo3::type_object::PyTypeCheck">PyTypeCheck</a>,</div></h3></section><section id="impl-FromPyObject%3C'_%3E-for-T" class="impl"><a class="src rightside" href="../../src/pyo3/conversion.rs.html#554-562">Source</a><a href="#impl-FromPyObject%3C'_%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'_> for T<div class="where">where
|
||
T: <a class="trait" href="../pyclass/trait.PyClass.html" title="trait pyo3::pyclass::PyClass">PyClass</a> + <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section><section id="impl-FromPyObject%3C'_%3E-for-PyBuffer%3CT%3E" class="impl"><a class="src rightside" href="../../src/pyo3/buffer.rs.html#185-189">Source</a><a href="#impl-FromPyObject%3C'_%3E-for-PyBuffer%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<T: <a class="trait" href="../buffer/trait.Element.html" title="trait pyo3::buffer::Element">Element</a>> <a class="trait" href="trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'_> for <a class="struct" href="../buffer/struct.PyBuffer.html" title="struct pyo3::buffer::PyBuffer">PyBuffer</a><T></h3></section></div><script src="../../trait.impl/pyo3/conversion/trait.FromPyObject.js" data-ignore-extern-crates="std,core,alloc" async></script></section></div></main></body></html> |