5 lines
39 KiB
HTML
5 lines
39 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="Python exceptions that can be converted to `PyErr`."><title>ToPyErr in pyo3 - 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="#">ToPyErr</a></h2><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="index.html">In crate pyo3</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></span><h1>Trait <span class="trait">ToPyErr</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/err/mod.rs.html#885">Source</a> </span></div><pre class="rust item-decl"><code>pub trait ToPyErr { }</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Python exceptions that can be converted to <a href="struct.PyErr.html" title="struct pyo3::PyErr"><code>PyErr</code></a>.</p>
|
|
<p>This is used to implement [<code>From<Bound<'_, T>> for PyErr</code>].</p>
|
|
<p>Users should not need to implement this trait directly. It is implemented automatically in the
|
|
<a href="macro.import_exception.html" title="macro pyo3::import_exception"><code>crate::import_exception!</code></a> and <a href="macro.create_exception.html" title="macro pyo3::create_exception"><code>crate::create_exception!</code></a> macros.</p>
|
|
</div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-ToPyErr-for-CancelledError" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#803">Source</a><a href="#impl-ToPyErr-for-CancelledError" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/asyncio/struct.CancelledError.html" title="struct pyo3::exceptions::asyncio::CancelledError">CancelledError</a></h3></section><section id="impl-ToPyErr-for-IncompleteReadError" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#806">Source</a><a href="#impl-ToPyErr-for-IncompleteReadError" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/asyncio/struct.IncompleteReadError.html" title="struct pyo3::exceptions::asyncio::IncompleteReadError">IncompleteReadError</a></h3></section><section id="impl-ToPyErr-for-InvalidStateError" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#804">Source</a><a href="#impl-ToPyErr-for-InvalidStateError" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/asyncio/struct.InvalidStateError.html" title="struct pyo3::exceptions::asyncio::InvalidStateError">InvalidStateError</a></h3></section><section id="impl-ToPyErr-for-LimitOverrunError" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#807">Source</a><a href="#impl-ToPyErr-for-LimitOverrunError" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/asyncio/struct.LimitOverrunError.html" title="struct pyo3::exceptions::asyncio::LimitOverrunError">LimitOverrunError</a></h3></section><section id="impl-ToPyErr-for-QueueEmpty" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#808">Source</a><a href="#impl-ToPyErr-for-QueueEmpty" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/asyncio/struct.QueueEmpty.html" title="struct pyo3::exceptions::asyncio::QueueEmpty">QueueEmpty</a></h3></section><section id="impl-ToPyErr-for-QueueFull" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#809">Source</a><a href="#impl-ToPyErr-for-QueueFull" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/asyncio/struct.QueueFull.html" title="struct pyo3::exceptions::asyncio::QueueFull">QueueFull</a></h3></section><section id="impl-ToPyErr-for-TimeoutError" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#805">Source</a><a href="#impl-ToPyErr-for-TimeoutError" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/asyncio/struct.TimeoutError.html" title="struct pyo3::exceptions::asyncio::TimeoutError">TimeoutError</a></h3></section><section id="impl-ToPyErr-for-gaierror" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#831">Source</a><a href="#impl-ToPyErr-for-gaierror" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/socket/struct.gaierror.html" title="struct pyo3::exceptions::socket::gaierror">gaierror</a></h3></section><section id="impl-ToPyErr-for-herror" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#830">Source</a><a href="#impl-ToPyErr-for-herror" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/socket/struct.herror.html" title="struct pyo3::exceptions::socket::herror">herror</a></h3></section><section id="impl-ToPyErr-for-timeout" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#832">Source</a><a href="#impl-ToPyErr-for-timeout" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/socket/struct.timeout.html" title="struct pyo3::exceptions::socket::timeout">timeout</a></h3></section><section id="impl-ToPyErr-for-PyArithmeticError" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#399-403">Source</a><a href="#impl-ToPyErr-for-PyArithmeticError" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyArithmeticError.html" title="struct pyo3::exceptions::PyArithmeticError">PyArithmeticError</a></h3></section><section id="impl-ToPyErr-for-PyAssertionError" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#406-410">Source</a><a href="#impl-ToPyErr-for-PyAssertionError" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyAssertionError.html" title="struct pyo3::exceptions::PyAssertionError">PyAssertionError</a></h3></section><section id="impl-ToPyErr-for-PyAttributeError" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#411-415">Source</a><a href="#impl-ToPyErr-for-PyAttributeError" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyAttributeError.html" title="struct pyo3::exceptions::PyAttributeError">PyAttributeError</a></h3></section><section id="impl-ToPyErr-for-PyBaseException" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#375-381">Source</a><a href="#impl-ToPyErr-for-PyBaseException" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyBaseException.html" title="struct pyo3::exceptions::PyBaseException">PyBaseException</a></h3></section><section id="impl-ToPyErr-for-PyBaseExceptionGroup" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#529-533">Source</a><a href="#impl-ToPyErr-for-PyBaseExceptionGroup" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyBaseExceptionGroup.html" title="struct pyo3::exceptions::PyBaseExceptionGroup">PyBaseExceptionGroup</a></h3></section><section id="impl-ToPyErr-for-PyBlockingIOError" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#541-545">Source</a><a href="#impl-ToPyErr-for-PyBlockingIOError" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyBlockingIOError.html" title="struct pyo3::exceptions::PyBlockingIOError">PyBlockingIOError</a></h3></section><section id="impl-ToPyErr-for-PyBrokenPipeError" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#546-550">Source</a><a href="#impl-ToPyErr-for-PyBrokenPipeError" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyBrokenPipeError.html" title="struct pyo3::exceptions::PyBrokenPipeError">PyBrokenPipeError</a></h3></section><section id="impl-ToPyErr-for-PyBufferError" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#416">Source</a><a href="#impl-ToPyErr-for-PyBufferError" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyBufferError.html" title="struct pyo3::exceptions::PyBufferError">PyBufferError</a></h3></section><section id="impl-ToPyErr-for-PyBytesWarning" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#754-758">Source</a><a href="#impl-ToPyErr-for-PyBytesWarning" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyBytesWarning.html" title="struct pyo3::exceptions::PyBytesWarning">PyBytesWarning</a></h3></section><section id="impl-ToPyErr-for-PyChildProcessError" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#551-555">Source</a><a href="#impl-ToPyErr-for-PyChildProcessError" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyChildProcessError.html" title="struct pyo3::exceptions::PyChildProcessError">PyChildProcessError</a></h3></section><section id="impl-ToPyErr-for-PyConnectionAbortedError" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#561-565">Source</a><a href="#impl-ToPyErr-for-PyConnectionAbortedError" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyConnectionAbortedError.html" title="struct pyo3::exceptions::PyConnectionAbortedError">PyConnectionAbortedError</a></h3></section><section id="impl-ToPyErr-for-PyConnectionError" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#556-560">Source</a><a href="#impl-ToPyErr-for-PyConnectionError" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyConnectionError.html" title="struct pyo3::exceptions::PyConnectionError">PyConnectionError</a></h3></section><section id="impl-ToPyErr-for-PyConnectionRefusedError" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#566-570">Source</a><a href="#impl-ToPyErr-for-PyConnectionRefusedError" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyConnectionRefusedError.html" title="struct pyo3::exceptions::PyConnectionRefusedError">PyConnectionRefusedError</a></h3></section><section id="impl-ToPyErr-for-PyConnectionResetError" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#571-575">Source</a><a href="#impl-ToPyErr-for-PyConnectionResetError" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyConnectionResetError.html" title="struct pyo3::exceptions::PyConnectionResetError">PyConnectionResetError</a></h3></section><section id="impl-ToPyErr-for-PyDeprecationWarning" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#719-723">Source</a><a href="#impl-ToPyErr-for-PyDeprecationWarning" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyDeprecationWarning.html" title="struct pyo3::exceptions::PyDeprecationWarning">PyDeprecationWarning</a></h3></section><section id="impl-ToPyErr-for-PyEOFError" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#417">Source</a><a href="#impl-ToPyErr-for-PyEOFError" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyEOFError.html" title="struct pyo3::exceptions::PyEOFError">PyEOFError</a></h3></section><section id="impl-ToPyErr-for-PyEncodingWarning" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#766-770">Source</a><a href="#impl-ToPyErr-for-PyEncodingWarning" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyEncodingWarning.html" title="struct pyo3::exceptions::PyEncodingWarning">PyEncodingWarning</a></h3></section><section id="impl-ToPyErr-for-PyEnvironmentError" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#617-621">Source</a><a href="#impl-ToPyErr-for-PyEnvironmentError" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyEnvironmentError.html" title="struct pyo3::exceptions::PyEnvironmentError">PyEnvironmentError</a></h3></section><section id="impl-ToPyErr-for-PyException" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#382">Source</a><a href="#impl-ToPyErr-for-PyException" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyException.html" title="struct pyo3::exceptions::PyException">PyException</a></h3></section><section id="impl-ToPyErr-for-PyFileExistsError" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#576-580">Source</a><a href="#impl-ToPyErr-for-PyFileExistsError" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyFileExistsError.html" title="struct pyo3::exceptions::PyFileExistsError">PyFileExistsError</a></h3></section><section id="impl-ToPyErr-for-PyFileNotFoundError" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#581-585">Source</a><a href="#impl-ToPyErr-for-PyFileNotFoundError" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyFileNotFoundError.html" title="struct pyo3::exceptions::PyFileNotFoundError">PyFileNotFoundError</a></h3></section><section id="impl-ToPyErr-for-PyFloatingPointError" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#418-422">Source</a><a href="#impl-ToPyErr-for-PyFloatingPointError" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyFloatingPointError.html" title="struct pyo3::exceptions::PyFloatingPointError">PyFloatingPointError</a></h3></section><section id="impl-ToPyErr-for-PyFutureWarning" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#739-743">Source</a><a href="#impl-ToPyErr-for-PyFutureWarning" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyFutureWarning.html" title="struct pyo3::exceptions::PyFutureWarning">PyFutureWarning</a></h3></section><section id="impl-ToPyErr-for-PyGeneratorExit" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#394-398">Source</a><a href="#impl-ToPyErr-for-PyGeneratorExit" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyGeneratorExit.html" title="struct pyo3::exceptions::PyGeneratorExit">PyGeneratorExit</a></h3></section><section id="impl-ToPyErr-for-PyIOError" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#622">Source</a><a href="#impl-ToPyErr-for-PyIOError" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyIOError.html" title="struct pyo3::exceptions::PyIOError">PyIOError</a></h3></section><section id="impl-ToPyErr-for-PyImportError" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#432">Source</a><a href="#impl-ToPyErr-for-PyImportError" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyImportError.html" title="struct pyo3::exceptions::PyImportError">PyImportError</a></h3></section><section id="impl-ToPyErr-for-PyImportWarning" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#744-748">Source</a><a href="#impl-ToPyErr-for-PyImportWarning" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyImportWarning.html" title="struct pyo3::exceptions::PyImportWarning">PyImportWarning</a></h3></section><section id="impl-ToPyErr-for-PyIndexError" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#440">Source</a><a href="#impl-ToPyErr-for-PyIndexError" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyIndexError.html" title="struct pyo3::exceptions::PyIndexError">PyIndexError</a></h3></section><section id="impl-ToPyErr-for-PyInterruptedError" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#586-590">Source</a><a href="#impl-ToPyErr-for-PyInterruptedError" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyInterruptedError.html" title="struct pyo3::exceptions::PyInterruptedError">PyInterruptedError</a></h3></section><section id="impl-ToPyErr-for-PyIsADirectoryError" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#591-595">Source</a><a href="#impl-ToPyErr-for-PyIsADirectoryError" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyIsADirectoryError.html" title="struct pyo3::exceptions::PyIsADirectoryError">PyIsADirectoryError</a></h3></section><section id="impl-ToPyErr-for-PyKeyError" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#441">Source</a><a href="#impl-ToPyErr-for-PyKeyError" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyKeyError.html" title="struct pyo3::exceptions::PyKeyError">PyKeyError</a></h3></section><section id="impl-ToPyErr-for-PyKeyboardInterrupt" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#442-446">Source</a><a href="#impl-ToPyErr-for-PyKeyboardInterrupt" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyKeyboardInterrupt.html" title="struct pyo3::exceptions::PyKeyboardInterrupt">PyKeyboardInterrupt</a></h3></section><section id="impl-ToPyErr-for-PyLookupError" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#404">Source</a><a href="#impl-ToPyErr-for-PyLookupError" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyLookupError.html" title="struct pyo3::exceptions::PyLookupError">PyLookupError</a></h3></section><section id="impl-ToPyErr-for-PyMemoryError" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#447">Source</a><a href="#impl-ToPyErr-for-PyMemoryError" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyMemoryError.html" title="struct pyo3::exceptions::PyMemoryError">PyMemoryError</a></h3></section><section id="impl-ToPyErr-for-PyModuleNotFoundError" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#434-438">Source</a><a href="#impl-ToPyErr-for-PyModuleNotFoundError" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyModuleNotFoundError.html" title="struct pyo3::exceptions::PyModuleNotFoundError">PyModuleNotFoundError</a></h3></section><section id="impl-ToPyErr-for-PyNameError" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#448">Source</a><a href="#impl-ToPyErr-for-PyNameError" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyNameError.html" title="struct pyo3::exceptions::PyNameError">PyNameError</a></h3></section><section id="impl-ToPyErr-for-PyNotADirectoryError" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#596-600">Source</a><a href="#impl-ToPyErr-for-PyNotADirectoryError" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyNotADirectoryError.html" title="struct pyo3::exceptions::PyNotADirectoryError">PyNotADirectoryError</a></h3></section><section id="impl-ToPyErr-for-PyNotImplementedError" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#464-468">Source</a><a href="#impl-ToPyErr-for-PyNotImplementedError" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyNotImplementedError.html" title="struct pyo3::exceptions::PyNotImplementedError">PyNotImplementedError</a></h3></section><section id="impl-ToPyErr-for-PyOSError" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#424-429">Source</a><a href="#impl-ToPyErr-for-PyOSError" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyOSError.html" title="struct pyo3::exceptions::PyOSError">PyOSError</a></h3></section><section id="impl-ToPyErr-for-PyOverflowError" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#449-453">Source</a><a href="#impl-ToPyErr-for-PyOverflowError" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyOverflowError.html" title="struct pyo3::exceptions::PyOverflowError">PyOverflowError</a></h3></section><section id="impl-ToPyErr-for-PyPendingDeprecationWarning" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#724-728">Source</a><a href="#impl-ToPyErr-for-PyPendingDeprecationWarning" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyPendingDeprecationWarning.html" title="struct pyo3::exceptions::PyPendingDeprecationWarning">PyPendingDeprecationWarning</a></h3></section><section id="impl-ToPyErr-for-PyPermissionError" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#601-605">Source</a><a href="#impl-ToPyErr-for-PyPermissionError" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyPermissionError.html" title="struct pyo3::exceptions::PyPermissionError">PyPermissionError</a></h3></section><section id="impl-ToPyErr-for-PyProcessLookupError" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#606-610">Source</a><a href="#impl-ToPyErr-for-PyProcessLookupError" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyProcessLookupError.html" title="struct pyo3::exceptions::PyProcessLookupError">PyProcessLookupError</a></h3></section><section id="impl-ToPyErr-for-PyRecursionError" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#459-463">Source</a><a href="#impl-ToPyErr-for-PyRecursionError" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyRecursionError.html" title="struct pyo3::exceptions::PyRecursionError">PyRecursionError</a></h3></section><section id="impl-ToPyErr-for-PyReferenceError" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#478-482">Source</a><a href="#impl-ToPyErr-for-PyReferenceError" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyReferenceError.html" title="struct pyo3::exceptions::PyReferenceError">PyReferenceError</a></h3></section><section id="impl-ToPyErr-for-PyResourceWarning" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#759-763">Source</a><a href="#impl-ToPyErr-for-PyResourceWarning" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyResourceWarning.html" title="struct pyo3::exceptions::PyResourceWarning">PyResourceWarning</a></h3></section><section id="impl-ToPyErr-for-PyRuntimeError" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#454-458">Source</a><a href="#impl-ToPyErr-for-PyRuntimeError" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyRuntimeError.html" title="struct pyo3::exceptions::PyRuntimeError">PyRuntimeError</a></h3></section><section id="impl-ToPyErr-for-PyRuntimeWarning" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#734-738">Source</a><a href="#impl-ToPyErr-for-PyRuntimeWarning" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyRuntimeWarning.html" title="struct pyo3::exceptions::PyRuntimeWarning">PyRuntimeWarning</a></h3></section><section id="impl-ToPyErr-for-PyStopAsyncIteration" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#383-387">Source</a><a href="#impl-ToPyErr-for-PyStopAsyncIteration" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyStopAsyncIteration.html" title="struct pyo3::exceptions::PyStopAsyncIteration">PyStopAsyncIteration</a></h3></section><section id="impl-ToPyErr-for-PyStopIteration" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#388-393">Source</a><a href="#impl-ToPyErr-for-PyStopIteration" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyStopIteration.html" title="struct pyo3::exceptions::PyStopIteration">PyStopIteration</a></h3></section><section id="impl-ToPyErr-for-PySyntaxError" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#470-475">Source</a><a href="#impl-ToPyErr-for-PySyntaxError" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PySyntaxError.html" title="struct pyo3::exceptions::PySyntaxError">PySyntaxError</a></h3></section><section id="impl-ToPyErr-for-PySyntaxWarning" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#729-733">Source</a><a href="#impl-ToPyErr-for-PySyntaxWarning" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PySyntaxWarning.html" title="struct pyo3::exceptions::PySyntaxWarning">PySyntaxWarning</a></h3></section><section id="impl-ToPyErr-for-PySystemError" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#483">Source</a><a href="#impl-ToPyErr-for-PySystemError" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PySystemError.html" title="struct pyo3::exceptions::PySystemError">PySystemError</a></h3></section><section id="impl-ToPyErr-for-PySystemExit" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#485-490">Source</a><a href="#impl-ToPyErr-for-PySystemExit" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PySystemExit.html" title="struct pyo3::exceptions::PySystemExit">PySystemExit</a></h3></section><section id="impl-ToPyErr-for-PyTimeoutError" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#611-615">Source</a><a href="#impl-ToPyErr-for-PyTimeoutError" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyTimeoutError.html" title="struct pyo3::exceptions::PyTimeoutError">PyTimeoutError</a></h3></section><section id="impl-ToPyErr-for-PyTypeError" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#493">Source</a><a href="#impl-ToPyErr-for-PyTypeError" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyTypeError.html" title="struct pyo3::exceptions::PyTypeError">PyTypeError</a></h3></section><section id="impl-ToPyErr-for-PyUnboundLocalError" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#494-498">Source</a><a href="#impl-ToPyErr-for-PyUnboundLocalError" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyUnboundLocalError.html" title="struct pyo3::exceptions::PyUnboundLocalError">PyUnboundLocalError</a></h3></section><section id="impl-ToPyErr-for-PyUnicodeDecodeError" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#513-517">Source</a><a href="#impl-ToPyErr-for-PyUnicodeDecodeError" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyUnicodeDecodeError.html" title="struct pyo3::exceptions::PyUnicodeDecodeError">PyUnicodeDecodeError</a></h3></section><section id="impl-ToPyErr-for-PyUnicodeEncodeError" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#518-522">Source</a><a href="#impl-ToPyErr-for-PyUnicodeEncodeError" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyUnicodeEncodeError.html" title="struct pyo3::exceptions::PyUnicodeEncodeError">PyUnicodeEncodeError</a></h3></section><section id="impl-ToPyErr-for-PyUnicodeError" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#500-505">Source</a><a href="#impl-ToPyErr-for-PyUnicodeError" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyUnicodeError.html" title="struct pyo3::exceptions::PyUnicodeError">PyUnicodeError</a></h3></section><section id="impl-ToPyErr-for-PyUnicodeTranslateError" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#523-527">Source</a><a href="#impl-ToPyErr-for-PyUnicodeTranslateError" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyUnicodeTranslateError.html" title="struct pyo3::exceptions::PyUnicodeTranslateError">PyUnicodeTranslateError</a></h3></section><section id="impl-ToPyErr-for-PyUnicodeWarning" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#749-753">Source</a><a href="#impl-ToPyErr-for-PyUnicodeWarning" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyUnicodeWarning.html" title="struct pyo3::exceptions::PyUnicodeWarning">PyUnicodeWarning</a></h3></section><section id="impl-ToPyErr-for-PyUserWarning" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#718">Source</a><a href="#impl-ToPyErr-for-PyUserWarning" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyUserWarning.html" title="struct pyo3::exceptions::PyUserWarning">PyUserWarning</a></h3></section><section id="impl-ToPyErr-for-PyValueError" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#534">Source</a><a href="#impl-ToPyErr-for-PyValueError" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyValueError.html" title="struct pyo3::exceptions::PyValueError">PyValueError</a></h3></section><section id="impl-ToPyErr-for-PyWarning" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#717">Source</a><a href="#impl-ToPyErr-for-PyWarning" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyWarning.html" title="struct pyo3::exceptions::PyWarning">PyWarning</a></h3></section><section id="impl-ToPyErr-for-PyZeroDivisionError" class="impl"><a class="src rightside" href="../src/pyo3/exceptions.rs.html#535-539">Source</a><a href="#impl-ToPyErr-for-PyZeroDivisionError" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="exceptions/struct.PyZeroDivisionError.html" title="struct pyo3::exceptions::PyZeroDivisionError">PyZeroDivisionError</a></h3></section><section id="impl-ToPyErr-for-PanicException" class="impl"><a class="src rightside" href="../src/pyo3/panic.rs.html#6-16">Source</a><a href="#impl-ToPyErr-for-PanicException" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a> for <a class="struct" href="panic/struct.PanicException.html" title="struct pyo3::panic::PanicException">PanicException</a></h3></section></div><script src="../trait.impl/pyo3/err/trait.ToPyErr.js" async></script></section></div></main></body></html> |