761 lines
744 KiB
HTML
761 lines
744 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A GIL-attached equivalent to `Py<T>`."><title>Bound in pyo3::prelude - 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 struct"><!--[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="#">Bound</a></h2><h3><a href="#implementations">Methods</a></h3><ul class="block method"><li><a href="#method.as_any" title="as_any">as_any</a></li><li><a href="#method.as_borrowed" title="as_borrowed">as_borrowed</a></li><li><a href="#method.as_ptr" title="as_ptr">as_ptr</a></li><li><a href="#method.as_super" title="as_super">as_super</a></li><li><a href="#method.as_unbound" title="as_unbound">as_unbound</a></li><li><a href="#method.borrow" title="borrow">borrow</a></li><li><a href="#method.borrow_mut" title="borrow_mut">borrow_mut</a></li><li><a href="#method.from_borrowed_ptr" title="from_borrowed_ptr">from_borrowed_ptr</a></li><li><a href="#method.from_borrowed_ptr_or_err" title="from_borrowed_ptr_or_err">from_borrowed_ptr_or_err</a></li><li><a href="#method.from_borrowed_ptr_or_opt" title="from_borrowed_ptr_or_opt">from_borrowed_ptr_or_opt</a></li><li><a href="#method.from_owned_ptr" title="from_owned_ptr">from_owned_ptr</a></li><li><a href="#method.from_owned_ptr_or_err" title="from_owned_ptr_or_err">from_owned_ptr_or_err</a></li><li><a href="#method.from_owned_ptr_or_opt" title="from_owned_ptr_or_opt">from_owned_ptr_or_opt</a></li><li><a href="#method.get" title="get">get</a></li><li><a href="#method.into_any" title="into_any">into_any</a></li><li><a href="#method.into_ptr" title="into_ptr">into_ptr</a></li><li><a href="#method.into_super" title="into_super">into_super</a></li><li><a href="#method.new" title="new">new</a></li><li><a href="#method.py" title="py">py</a></li><li><a href="#method.send" title="send">send</a></li><li><a href="#method.try_borrow" title="try_borrow">try_borrow</a></li><li><a href="#method.try_borrow_mut" title="try_borrow_mut">try_borrow_mut</a></li><li><a href="#method.unbind" title="unbind">unbind</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block trait-implementation"><li><a href="#impl-Add-for-%26Bound%3C'py,+PyComplex%3E" title="Add">Add</a></li><li><a href="#impl-Add-for-Bound%3C'py,+PyComplex%3E" title="Add">Add</a></li><li><a href="#impl-Add%3C%26Bound%3C'py,+PyComplex%3E%3E-for-Bound%3C'py,+PyComplex%3E" title="Add<&Bound<'py, PyComplex>>">Add<&Bound<'py, PyComplex>></a></li><li><a href="#impl-Add%3CBound%3C'py,+PyComplex%3E%3E-for-%26Bound%3C'py,+PyComplex%3E" title="Add<Bound<'py, PyComplex>>">Add<Bound<'py, PyComplex>></a></li><li><a href="#impl-AsPyPointer-for-Bound%3C'_,+T%3E" title="AsPyPointer">AsPyPointer</a></li><li><a href="#impl-AsRef%3CBound%3C'py,+PyAny%3E%3E-for-Bound%3C'py,+T%3E" title="AsRef<Bound<'py, PyAny>>">AsRef<Bound<'py, PyAny>></a></li><li><a href="#impl-BoundObject%3C'py,+T%3E-for-Bound%3C'py,+T%3E" title="BoundObject<'py, T>">BoundObject<'py, T></a></li><li><a href="#impl-Clone-for-Bound%3C'_,+T%3E" title="Clone">Clone</a></li><li><a href="#impl-Debug-for-Bound%3C'_,+T%3E" title="Debug">Debug</a></li><li><a href="#impl-Deref-for-Bound%3C'py,+T%3E" title="Deref">Deref</a></li><li><a href="#impl-Display-for-Bound%3C'_,+T%3E" title="Display">Display</a></li><li><a href="#impl-Div-for-%26Bound%3C'py,+PyComplex%3E" title="Div">Div</a></li><li><a href="#impl-Div-for-Bound%3C'py,+PyComplex%3E" title="Div">Div</a></li><li><a href="#impl-Div%3C%26Bound%3C'py,+PyComplex%3E%3E-for-Bound%3C'py,+PyComplex%3E" title="Div<&Bound<'py, PyComplex>>">Div<&Bound<'py, PyComplex>></a></li><li><a href="#impl-Div%3CBound%3C'py,+PyComplex%3E%3E-for-%26Bound%3C'py,+PyComplex%3E" title="Div<Bound<'py, PyComplex>>">Div<Bound<'py, PyComplex>></a></li><li><a href="#impl-Drop-for-Bound%3C'_,+T%3E" title="Drop">Drop</a></li><li><a href="#impl-From%3C%26Bound%3C'py,+T%3E%3E-for-Borrowed%3C'a,+'py,+T%3E" title="From<&'a Bound<'py, T>>">From<&'a Bound<'py, T>></a></li><li><a href="#impl-From%3CBound%3C'_,+PyByteArray%3E%3E-for-PyBackedBytes" title="From<Bound<'_, PyByteArray>>">From<Bound<'_, PyByteArray>></a></li><li><a href="#impl-From%3CBound%3C'_,+PyBytes%3E%3E-for-PyBackedBytes" title="From<Bound<'_, PyBytes>>">From<Bound<'_, PyBytes>></a></li><li><a href="#impl-From%3CBound%3C'_,+T%3E%3E-for-Py%3CPyAny%3E" title="From<Bound<'_, T>>">From<Bound<'_, T>></a></li><li><a href="#impl-From%3CBound%3C'_,+T%3E%3E-for-Py%3CT%3E" title="From<Bound<'_, T>>">From<Bound<'_, T>></a></li><li><a href="#impl-From%3CBound%3C'py,+T%3E%3E-for-PyClassInitializer%3CT%3E" title="From<Bound<'py, T>>">From<Bound<'py, T>></a></li><li><a href="#impl-From%3CBound%3C'py,+T%3E%3E-for-PyErr" title="From<Bound<'py, T>>">From<Bound<'py, T>></a></li><li><a href="#impl-FromPyObject%3C'py%3E-for-Bound%3C'py,+T%3E" title="FromPyObject<'py>">FromPyObject<'py></a></li><li><a href="#impl-Index%3CI%3E-for-Bound%3C'_,+PyBytes%3E" title="Index<I>">Index<I></a></li><li><a href="#impl-IntoIterator-for-%26Bound%3C'py,+PyDict%3E" title="IntoIterator">IntoIterator</a></li><li><a href="#impl-IntoIterator-for-%26Bound%3C'py,+PyFrozenSet%3E" title="IntoIterator">IntoIterator</a></li><li><a href="#impl-IntoIterator-for-%26Bound%3C'py,+PyIterator%3E" title="IntoIterator">IntoIterator</a></li><li><a href="#impl-IntoIterator-for-%26Bound%3C'py,+PyList%3E" title="IntoIterator">IntoIterator</a></li><li><a href="#impl-IntoIterator-for-%26Bound%3C'py,+PySet%3E" title="IntoIterator">IntoIterator</a></li><li><a href="#impl-IntoIterator-for-%26Bound%3C'py,+PyTuple%3E" title="IntoIterator">IntoIterator</a></li><li><a href="#impl-IntoIterator-for-Bound%3C'py,+PyDict%3E" title="IntoIterator">IntoIterator</a></li><li><a href="#impl-IntoIterator-for-Bound%3C'py,+PyFrozenSet%3E" title="IntoIterator">IntoIterator</a></li><li><a href="#impl-IntoIterator-for-Bound%3C'py,+PyList%3E" title="IntoIterator">IntoIterator</a></li><li><a href="#impl-IntoIterator-for-Bound%3C'py,+PySet%3E" title="IntoIterator">IntoIterator</a></li><li><a href="#impl-IntoIterator-for-Bound%3C'py,+PyTuple%3E" title="IntoIterator">IntoIterator</a></li><li><a href="#impl-IntoPy%3CPy%3CPyAny%3E%3E-for-%26Bound%3C'_,+T%3E" title="IntoPy<Py<PyAny>>">IntoPy<Py<PyAny>></a></li><li><a href="#impl-IntoPy%3CPy%3CPyAny%3E%3E-for-Bound%3C'_,+T%3E" title="IntoPy<Py<PyAny>>">IntoPy<Py<PyAny>></a></li><li><a href="#impl-IntoPy%3CPy%3CPyString%3E%3E-for-%26Bound%3C'_,+PyString%3E" title="IntoPy<Py<PyString>>">IntoPy<Py<PyString>></a></li><li><a href="#impl-IntoPy%3CPy%3CPyString%3E%3E-for-Bound%3C'_,+PyString%3E" title="IntoPy<Py<PyString>>">IntoPy<Py<PyString>></a></li><li><a href="#impl-IntoPy%3CPy%3CPyTuple%3E%3E-for-%26Bound%3C'_,+PyTuple%3E" title="IntoPy<Py<PyTuple>>">IntoPy<Py<PyTuple>></a></li><li><a href="#impl-IntoPy%3CPy%3CPyTuple%3E%3E-for-Bound%3C'_,+PyTuple%3E" title="IntoPy<Py<PyTuple>>">IntoPy<Py<PyTuple>></a></li><li><a href="#impl-IntoPyObject%3C'py%3E-for-%26Bound%3C'py,+T%3E" title="IntoPyObject<'py>">IntoPyObject<'py></a></li><li><a href="#impl-IntoPyObject%3C'py%3E-for-Bound%3C'py,+T%3E" title="IntoPyObject<'py>">IntoPyObject<'py></a></li><li><a href="#impl-Iterator-for-Bound%3C'py,+PyIterator%3E" title="Iterator">Iterator</a></li><li><a href="#impl-Mul-for-%26Bound%3C'py,+PyComplex%3E" title="Mul">Mul</a></li><li><a href="#impl-Mul-for-Bound%3C'py,+PyComplex%3E" title="Mul">Mul</a></li><li><a href="#impl-Mul%3C%26Bound%3C'py,+PyComplex%3E%3E-for-Bound%3C'py,+PyComplex%3E" title="Mul<&Bound<'py, PyComplex>>">Mul<&Bound<'py, PyComplex>></a></li><li><a href="#impl-Mul%3CBound%3C'py,+PyComplex%3E%3E-for-%26Bound%3C'py,+PyComplex%3E" title="Mul<Bound<'py, PyComplex>>">Mul<Bound<'py, PyComplex>></a></li><li><a href="#impl-Neg-for-%26Bound%3C'py,+PyComplex%3E" title="Neg">Neg</a></li><li><a href="#impl-Neg-for-Bound%3C'py,+PyComplex%3E" title="Neg">Neg</a></li><li><a href="#impl-PartialEq%3C%26Bound%3C'_,+PyBool%3E%3E-for-bool" title="PartialEq<&Bound<'_, PyBool>>">PartialEq<&Bound<'_, PyBool>></a></li><li><a href="#impl-PartialEq%3C%26Bound%3C'_,+PyBytes%3E%3E-for-%5Bu8%5D" title="PartialEq<&Bound<'_, PyBytes>>">PartialEq<&Bound<'_, PyBytes>></a></li><li><a href="#impl-PartialEq%3C%26Bound%3C'_,+PyFloat%3E%3E-for-f32" title="PartialEq<&Bound<'_, PyFloat>>">PartialEq<&Bound<'_, PyFloat>></a></li><li><a href="#impl-PartialEq%3C%26Bound%3C'_,+PyFloat%3E%3E-for-f64" title="PartialEq<&Bound<'_, PyFloat>>">PartialEq<&Bound<'_, PyFloat>></a></li><li><a href="#impl-PartialEq%3C%26Bound%3C'_,+PyString%3E%3E-for-str" title="PartialEq<&Bound<'_, PyString>>">PartialEq<&Bound<'_, PyString>></a></li><li><a href="#impl-PartialEq%3C%26%5Bu8%5D%3E-for-Bound%3C'_,+PyBytes%3E" title="PartialEq<&[u8]>">PartialEq<&[u8]></a></li><li><a href="#impl-PartialEq%3C%26bool%3E-for-Bound%3C'_,+PyBool%3E" title="PartialEq<&bool>">PartialEq<&bool></a></li><li><a href="#impl-PartialEq%3C%26f32%3E-for-Bound%3C'_,+PyFloat%3E" title="PartialEq<&f32>">PartialEq<&f32></a></li><li><a href="#impl-PartialEq%3C%26f64%3E-for-Bound%3C'_,+PyFloat%3E" title="PartialEq<&f64>">PartialEq<&f64></a></li><li><a href="#impl-PartialEq%3C%26str%3E-for-Bound%3C'_,+PyString%3E" title="PartialEq<&str>">PartialEq<&str></a></li><li><a href="#impl-PartialEq%3CBound%3C'_,+PyBool%3E%3E-for-%26bool" title="PartialEq<Bound<'_, PyBool>>">PartialEq<Bound<'_, PyBool>></a></li><li><a href="#impl-PartialEq%3CBound%3C'_,+PyBool%3E%3E-for-bool" title="PartialEq<Bound<'_, PyBool>>">PartialEq<Bound<'_, PyBool>></a></li><li><a href="#impl-PartialEq%3CBound%3C'_,+PyBytes%3E%3E-for-%26%5Bu8%5D" title="PartialEq<Bound<'_, PyBytes>>">PartialEq<Bound<'_, PyBytes>></a></li><li><a href="#impl-PartialEq%3CBound%3C'_,+PyBytes%3E%3E-for-%5Bu8%5D" title="PartialEq<Bound<'_, PyBytes>>">PartialEq<Bound<'_, PyBytes>></a></li><li><a href="#impl-PartialEq%3CBound%3C'_,+PyFloat%3E%3E-for-%26f32" title="PartialEq<Bound<'_, PyFloat>>">PartialEq<Bound<'_, PyFloat>></a></li><li><a href="#impl-PartialEq%3CBound%3C'_,+PyFloat%3E%3E-for-%26f64" title="PartialEq<Bound<'_, PyFloat>>">PartialEq<Bound<'_, PyFloat>></a></li><li><a href="#impl-PartialEq%3CBound%3C'_,+PyFloat%3E%3E-for-f32" title="PartialEq<Bound<'_, PyFloat>>">PartialEq<Bound<'_, PyFloat>></a></li><li><a href="#impl-PartialEq%3CBound%3C'_,+PyFloat%3E%3E-for-f64" title="PartialEq<Bound<'_, PyFloat>>">PartialEq<Bound<'_, PyFloat>></a></li><li><a href="#impl-PartialEq%3CBound%3C'_,+PyInt%3E%3E-for-i128" title="PartialEq<Bound<'_, PyInt>>">PartialEq<Bound<'_, PyInt>></a></li><li><a href="#impl-PartialEq%3CBound%3C'_,+PyInt%3E%3E-for-i16" title="PartialEq<Bound<'_, PyInt>>">PartialEq<Bound<'_, PyInt>></a></li><li><a href="#impl-PartialEq%3CBound%3C'_,+PyInt%3E%3E-for-i32" title="PartialEq<Bound<'_, PyInt>>">PartialEq<Bound<'_, PyInt>></a></li><li><a href="#impl-PartialEq%3CBound%3C'_,+PyInt%3E%3E-for-i64" title="PartialEq<Bound<'_, PyInt>>">PartialEq<Bound<'_, PyInt>></a></li><li><a href="#impl-PartialEq%3CBound%3C'_,+PyInt%3E%3E-for-i8" title="PartialEq<Bound<'_, PyInt>>">PartialEq<Bound<'_, PyInt>></a></li><li><a href="#impl-PartialEq%3CBound%3C'_,+PyInt%3E%3E-for-isize" title="PartialEq<Bound<'_, PyInt>>">PartialEq<Bound<'_, PyInt>></a></li><li><a href="#impl-PartialEq%3CBound%3C'_,+PyInt%3E%3E-for-u128" title="PartialEq<Bound<'_, PyInt>>">PartialEq<Bound<'_, PyInt>></a></li><li><a href="#impl-PartialEq%3CBound%3C'_,+PyInt%3E%3E-for-u16" title="PartialEq<Bound<'_, PyInt>>">PartialEq<Bound<'_, PyInt>></a></li><li><a href="#impl-PartialEq%3CBound%3C'_,+PyInt%3E%3E-for-u32" title="PartialEq<Bound<'_, PyInt>>">PartialEq<Bound<'_, PyInt>></a></li><li><a href="#impl-PartialEq%3CBound%3C'_,+PyInt%3E%3E-for-u64" title="PartialEq<Bound<'_, PyInt>>">PartialEq<Bound<'_, PyInt>></a></li><li><a href="#impl-PartialEq%3CBound%3C'_,+PyInt%3E%3E-for-u8" title="PartialEq<Bound<'_, PyInt>>">PartialEq<Bound<'_, PyInt>></a></li><li><a href="#impl-PartialEq%3CBound%3C'_,+PyInt%3E%3E-for-usize" title="PartialEq<Bound<'_, PyInt>>">PartialEq<Bound<'_, PyInt>></a></li><li><a href="#impl-PartialEq%3CBound%3C'_,+PyString%3E%3E-for-%26str" title="PartialEq<Bound<'_, PyString>>">PartialEq<Bound<'_, PyString>></a></li><li><a href="#impl-PartialEq%3CBound%3C'_,+PyString%3E%3E-for-str" title="PartialEq<Bound<'_, PyString>>">PartialEq<Bound<'_, PyString>></a></li><li><a href="#impl-PartialEq%3C%5Bu8%5D%3E-for-%26Bound%3C'_,+PyBytes%3E" title="PartialEq<[u8]>">PartialEq<[u8]></a></li><li><a href="#impl-PartialEq%3C%5Bu8%5D%3E-for-Bound%3C'_,+PyBytes%3E" title="PartialEq<[u8]>">PartialEq<[u8]></a></li><li><a href="#impl-PartialEq%3Cbool%3E-for-%26Bound%3C'_,+PyBool%3E" title="PartialEq<bool>">PartialEq<bool></a></li><li><a href="#impl-PartialEq%3Cbool%3E-for-Bound%3C'_,+PyBool%3E" title="PartialEq<bool>">PartialEq<bool></a></li><li><a href="#impl-PartialEq%3Cf32%3E-for-%26Bound%3C'_,+PyFloat%3E" title="PartialEq<f32>">PartialEq<f32></a></li><li><a href="#impl-PartialEq%3Cf32%3E-for-Bound%3C'_,+PyFloat%3E" title="PartialEq<f32>">PartialEq<f32></a></li><li><a href="#impl-PartialEq%3Cf64%3E-for-%26Bound%3C'_,+PyFloat%3E" title="PartialEq<f64>">PartialEq<f64></a></li><li><a href="#impl-PartialEq%3Cf64%3E-for-Bound%3C'_,+PyFloat%3E" title="PartialEq<f64>">PartialEq<f64></a></li><li><a href="#impl-PartialEq%3Ci128%3E-for-Bound%3C'_,+PyInt%3E" title="PartialEq<i128>">PartialEq<i128></a></li><li><a href="#impl-PartialEq%3Ci16%3E-for-Bound%3C'_,+PyInt%3E" title="PartialEq<i16>">PartialEq<i16></a></li><li><a href="#impl-PartialEq%3Ci32%3E-for-Bound%3C'_,+PyInt%3E" title="PartialEq<i32>">PartialEq<i32></a></li><li><a href="#impl-PartialEq%3Ci64%3E-for-Bound%3C'_,+PyInt%3E" title="PartialEq<i64>">PartialEq<i64></a></li><li><a href="#impl-PartialEq%3Ci8%3E-for-Bound%3C'_,+PyInt%3E" title="PartialEq<i8>">PartialEq<i8></a></li><li><a href="#impl-PartialEq%3Cisize%3E-for-Bound%3C'_,+PyInt%3E" title="PartialEq<isize>">PartialEq<isize></a></li><li><a href="#impl-PartialEq%3Cstr%3E-for-%26Bound%3C'_,+PyString%3E" title="PartialEq<str>">PartialEq<str></a></li><li><a href="#impl-PartialEq%3Cstr%3E-for-Bound%3C'_,+PyString%3E" title="PartialEq<str>">PartialEq<str></a></li><li><a href="#impl-PartialEq%3Cu128%3E-for-Bound%3C'_,+PyInt%3E" title="PartialEq<u128>">PartialEq<u128></a></li><li><a href="#impl-PartialEq%3Cu16%3E-for-Bound%3C'_,+PyInt%3E" title="PartialEq<u16>">PartialEq<u16></a></li><li><a href="#impl-PartialEq%3Cu32%3E-for-Bound%3C'_,+PyInt%3E" title="PartialEq<u32>">PartialEq<u32></a></li><li><a href="#impl-PartialEq%3Cu64%3E-for-Bound%3C'_,+PyInt%3E" title="PartialEq<u64>">PartialEq<u64></a></li><li><a href="#impl-PartialEq%3Cu8%3E-for-Bound%3C'_,+PyInt%3E" title="PartialEq<u8>">PartialEq<u8></a></li><li><a href="#impl-PartialEq%3Cusize%3E-for-Bound%3C'_,+PyInt%3E" title="PartialEq<usize>">PartialEq<usize></a></li><li><a href="#impl-PyAnyMethods%3C'py%3E-for-Bound%3C'py,+PyAny%3E" title="PyAnyMethods<'py>">PyAnyMethods<'py></a></li><li><a href="#impl-PyBoolMethods%3C'py%3E-for-Bound%3C'py,+PyBool%3E" title="PyBoolMethods<'py>">PyBoolMethods<'py></a></li><li><a href="#impl-PyByteArrayMethods%3C'py%3E-for-Bound%3C'py,+PyByteArray%3E" title="PyByteArrayMethods<'py>">PyByteArrayMethods<'py></a></li><li><a href="#impl-PyBytesMethods%3C'py%3E-for-Bound%3C'py,+PyBytes%3E" title="PyBytesMethods<'py>">PyBytesMethods<'py></a></li><li><a href="#impl-PyCallArgs%3C'py%3E-for-%26Bound%3C'py,+PyTuple%3E" title="PyCallArgs<'py>">PyCallArgs<'py></a></li><li><a href="#impl-PyCallArgs%3C'py%3E-for-Bound%3C'py,+PyTuple%3E" title="PyCallArgs<'py>">PyCallArgs<'py></a></li><li><a href="#impl-PyCapsuleMethods%3C'py%3E-for-Bound%3C'py,+PyCapsule%3E" title="PyCapsuleMethods<'py>">PyCapsuleMethods<'py></a></li><li><a href="#impl-PyComplexMethods%3C'py%3E-for-Bound%3C'py,+PyComplex%3E" title="PyComplexMethods<'py>">PyComplexMethods<'py></a></li><li><a href="#impl-PyDateAccess-for-Bound%3C'_,+PyDate%3E" title="PyDateAccess">PyDateAccess</a></li><li><a href="#impl-PyDateAccess-for-Bound%3C'_,+PyDateTime%3E" title="PyDateAccess">PyDateAccess</a></li><li><a href="#impl-PyDeltaAccess-for-Bound%3C'_,+PyDelta%3E" title="PyDeltaAccess">PyDeltaAccess</a></li><li><a href="#impl-PyDictMethods%3C'py%3E-for-Bound%3C'py,+PyDict%3E" title="PyDictMethods<'py>">PyDictMethods<'py></a></li><li><a href="#impl-PyFloatMethods%3C'py%3E-for-Bound%3C'py,+PyFloat%3E" title="PyFloatMethods<'py>">PyFloatMethods<'py></a></li><li><a href="#impl-PyFrozenSetMethods%3C'py%3E-for-Bound%3C'py,+PyFrozenSet%3E" title="PyFrozenSetMethods<'py>">PyFrozenSetMethods<'py></a></li><li><a href="#impl-PyListMethods%3C'py%3E-for-Bound%3C'py,+PyList%3E" title="PyListMethods<'py>">PyListMethods<'py></a></li><li><a href="#impl-PyMappingMethods%3C'py%3E-for-Bound%3C'py,+PyMapping%3E" title="PyMappingMethods<'py>">PyMappingMethods<'py></a></li><li><a href="#impl-PyMappingProxyMethods%3C'py,+'a%3E-for-Bound%3C'py,+PyMappingProxy%3E" title="PyMappingProxyMethods<'py, 'a>">PyMappingProxyMethods<'py, 'a></a></li><li><a href="#impl-PyModuleMethods%3C'py%3E-for-Bound%3C'py,+PyModule%3E" title="PyModuleMethods<'py>">PyModuleMethods<'py></a></li><li><a href="#impl-PySequenceMethods%3C'py%3E-for-Bound%3C'py,+PySequence%3E" title="PySequenceMethods<'py>">PySequenceMethods<'py></a></li><li><a href="#impl-PySetMethods%3C'py%3E-for-Bound%3C'py,+PySet%3E" title="PySetMethods<'py>">PySetMethods<'py></a></li><li><a href="#impl-PySliceMethods%3C'py%3E-for-Bound%3C'py,+PySlice%3E" title="PySliceMethods<'py>">PySliceMethods<'py></a></li><li><a href="#impl-PyStringMethods%3C'py%3E-for-Bound%3C'py,+PyString%3E" title="PyStringMethods<'py>">PyStringMethods<'py></a></li><li><a href="#impl-PyTimeAccess-for-Bound%3C'_,+PyDateTime%3E" title="PyTimeAccess">PyTimeAccess</a></li><li><a href="#impl-PyTimeAccess-for-Bound%3C'_,+PyTime%3E" title="PyTimeAccess">PyTimeAccess</a></li><li><a href="#impl-PyTracebackMethods%3C'py%3E-for-Bound%3C'py,+PyTraceback%3E" title="PyTracebackMethods<'py>">PyTracebackMethods<'py></a></li><li><a href="#impl-PyTupleMethods%3C'py%3E-for-Bound%3C'py,+PyTuple%3E" title="PyTupleMethods<'py>">PyTupleMethods<'py></a></li><li><a href="#impl-PyTypeMethods%3C'py%3E-for-Bound%3C'py,+PyType%3E" title="PyTypeMethods<'py>">PyTypeMethods<'py></a></li><li><a href="#impl-PyTzInfoAccess%3C'py%3E-for-Bound%3C'py,+PyDateTime%3E" title="PyTzInfoAccess<'py>">PyTzInfoAccess<'py></a></li><li><a href="#impl-PyTzInfoAccess%3C'py%3E-for-Bound%3C'py,+PyTime%3E" title="PyTzInfoAccess<'py>">PyTzInfoAccess<'py></a></li><li><a href="#impl-PyWeakrefMethods%3C'py%3E-for-Bound%3C'py,+PyWeakref%3E" title="PyWeakrefMethods<'py>">PyWeakrefMethods<'py></a></li><li><a href="#impl-PyWeakrefMethods%3C'py%3E-for-Bound%3C'py,+PyWeakrefProxy%3E" title="PyWeakrefMethods<'py>">PyWeakrefMethods<'py></a></li><li><a href="#impl-PyWeakrefMethods%3C'py%3E-for-Bound%3C'py,+PyWeakrefReference%3E" title="PyWeakrefMethods<'py>">PyWeakrefMethods<'py></a></li><li><a href="#impl-Sub-for-%26Bound%3C'py,+PyComplex%3E" title="Sub">Sub</a></li><li><a href="#impl-Sub-for-Bound%3C'py,+PyComplex%3E" title="Sub">Sub</a></li><li><a href="#impl-Sub%3C%26Bound%3C'py,+PyComplex%3E%3E-for-Bound%3C'py,+PyComplex%3E" title="Sub<&Bound<'py, PyComplex>>">Sub<&Bound<'py, PyComplex>></a></li><li><a href="#impl-Sub%3CBound%3C'py,+PyComplex%3E%3E-for-%26Bound%3C'py,+PyComplex%3E" title="Sub<Bound<'py, PyComplex>>">Sub<Bound<'py, PyComplex>></a></li><li><a href="#impl-ToPyObject-for-Bound%3C'_,+T%3E" title="ToPyObject">ToPyObject</a></li><li><a href="#impl-TryFrom%3C%26Bound%3C'py,+PyAny%3E%3E-for-Bound%3C'py,+PyByteArray%3E" title="TryFrom<&Bound<'py, PyAny>>">TryFrom<&Bound<'py, PyAny>></a></li><li><a href="#impl-TryFrom%3C%26Bound%3C'py,+PyAny%3E%3E-for-Bound%3C'py,+PyMemoryView%3E" title="TryFrom<&Bound<'py, PyAny>>">TryFrom<&Bound<'py, PyAny>></a></li><li><a href="#impl-TryFrom%3CBound%3C'_,+PyString%3E%3E-for-PyBackedStr" title="TryFrom<Bound<'_, PyString>>">TryFrom<Bound<'_, PyString>></a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block synthetic-implementation"><li><a href="#impl-Send-for-Bound%3C'py,+T%3E" title="!Send">!Send</a></li><li><a href="#impl-Sync-for-Bound%3C'py,+T%3E" title="!Sync">!Sync</a></li><li><a href="#impl-Freeze-for-Bound%3C'py,+T%3E" title="Freeze">Freeze</a></li><li><a href="#impl-RefUnwindSafe-for-Bound%3C'py,+T%3E" title="RefUnwindSafe">RefUnwindSafe</a></li><li><a href="#impl-Unpin-for-Bound%3C'py,+T%3E" title="Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe-for-Bound%3C'py,+T%3E" title="UnwindSafe">UnwindSafe</a></li></ul><h3><a href="#blanket-implementations">Blanket Implementations</a></h3><ul class="block blanket-implementation"><li><a href="#impl-Any-for-T" title="Any">Any</a></li><li><a href="#impl-Borrow%3CT%3E-for-T" title="Borrow<T>">Borrow<T></a></li><li><a href="#impl-BorrowMut%3CT%3E-for-T" title="BorrowMut<T>">BorrowMut<T></a></li><li><a href="#impl-CloneToUninit-for-T" title="CloneToUninit">CloneToUninit</a></li><li><a href="#impl-From%3CT%3E-for-T" title="From<T>">From<T></a></li><li><a href="#impl-FromPyObjectBound%3C'_,+'py%3E-for-T" title="FromPyObjectBound<'_, 'py>">FromPyObjectBound<'_, 'py></a></li><li><a href="#impl-Into%3CU%3E-for-T" title="Into<U>">Into<U></a></li><li><a href="#impl-IntoIterator-for-I" title="IntoIterator">IntoIterator</a></li><li><a href="#impl-IntoPyDict%3C'py%3E-for-I" title="IntoPyDict<'py>">IntoPyDict<'py></a></li><li><a href="#impl-IntoPyObjectExt%3C'py%3E-for-T" title="IntoPyObjectExt<'py>">IntoPyObjectExt<'py></a></li><li><a href="#impl-Receiver-for-P" title="Receiver">Receiver</a></li><li><a href="#impl-ToOwned-for-T" title="ToOwned">ToOwned</a></li><li><a href="#impl-ToString-for-T" title="ToString">ToString</a></li><li><a href="#impl-TryFrom%3CU%3E-for-T" title="TryFrom<U>">TryFrom<U></a></li><li><a href="#impl-TryInto%3CU%3E-for-T" title="TryInto<U>">TryInto<U></a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In pyo3::<wbr>prelude</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">prelude</a></span><h1>Struct <span class="struct">Bound</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/instance.rs.html#67">Source</a> </span></div><pre class="rust item-decl"><code>pub struct Bound<'py, T>(<span class="comment">/* private fields */</span>);</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A GIL-attached equivalent to <a href="../struct.Py.html" title="struct pyo3::Py"><code>Py<T></code></a>.</p>
|
||
<p>This type can be thought of as equivalent to the tuple <code>(Py<T>, Python<'py>)</code>. By having the <code>'py</code>
|
||
lifetime of the [<code>Python<'py></code>] token, this ties the lifetime of the [<code>Bound<'py, T></code>] smart pointer
|
||
to the lifetime of the GIL and allows PyO3 to call Python APIs at maximum efficiency.</p>
|
||
<p>To access the object in situations where the GIL is not held, convert it to <a href="../struct.Py.html" title="struct pyo3::Py"><code>Py<T></code></a>
|
||
using <a href="../struct.Bound.html#method.unbind" title="method pyo3::Bound::unbind"><code>.unbind()</code></a>. This includes situations where the GIL is temporarily
|
||
released, such as <a href="../marker/struct.Python.html#method.allow_threads" title="method pyo3::marker::Python::allow_threads"><code>Python::allow_threads</code></a>’s closure.</p>
|
||
<p>See
|
||
<a href="https://pyo3.rs/v0.24.1/types.html#boundpy-t">the guide</a>
|
||
for more detail.</p>
|
||
</div></details><h2 id="implementations" class="section-header">Implementations<a href="#implementations" class="anchor">§</a></h2><div id="implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Bound%3C'py,+T%3E" class="impl"><a class="src rightside" href="../../src/pyo3/instance.rs.html#69-98">Source</a><a href="#impl-Bound%3C'py,+T%3E" class="anchor">§</a><h3 class="code-header">impl<'py, T> <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</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></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.new" class="method"><a class="src rightside" href="../../src/pyo3/instance.rs.html#92-97">Source</a><h4 class="code-header">pub fn <a href="#method.new" class="fn">new</a>(
|
||
py: <a class="struct" href="../marker/struct.Python.html" title="struct pyo3::marker::Python">Python</a><'py>,
|
||
value: impl <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../pyclass_init/struct.PyClassInitializer.html" title="struct pyo3::pyclass_init::PyClassInitializer">PyClassInitializer</a><T>>,
|
||
) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, T>></h4></section></summary><div class="docblock"><p>Creates a new instance <code>Bound<T></code> of a <code>#[pyclass]</code> on the Python heap.</p>
|
||
<h5 id="examples"><a class="doc-anchor" href="#examples">§</a>Examples</h5>
|
||
<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="attr">#[pyclass]
|
||
</span><span class="kw">struct </span>Foo {<span class="comment">/* fields omitted */</span>}
|
||
|
||
<span class="kw">let </span>foo: Py<Foo> = Python::with_gil(|py| -> PyResult<<span class="kw">_</span>> {
|
||
<span class="kw">let </span>foo: Bound<<span class="lifetime">'_</span>, Foo> = Bound::new(py, Foo {})<span class="question-mark">?</span>;
|
||
<span class="prelude-val">Ok</span>(foo.into())
|
||
})<span class="question-mark">?</span>;</code></pre></div>
|
||
</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Bound%3C'py,+PyAny%3E" class="impl"><a class="src rightside" href="../../src/pyo3/instance.rs.html#100-227">Source</a><a href="#impl-Bound%3C'py,+PyAny%3E" class="anchor">§</a><h3 class="code-header">impl<'py> <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>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from_owned_ptr" class="method"><a class="src rightside" href="../../src/pyo3/instance.rs.html#109-114">Source</a><h4 class="code-header">pub unsafe fn <a href="#method.from_owned_ptr" class="fn">from_owned_ptr</a>(py: <a class="struct" href="../marker/struct.Python.html" title="struct pyo3::marker::Python">Python</a><'py>, ptr: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.pointer.html">*mut </a><a class="struct" href="../ffi/struct.PyObject.html" title="struct pyo3::ffi::PyObject">PyObject</a>) -> Self</h4></section></summary><div class="docblock"><p>Constructs a new <code>Bound<'py, PyAny></code> from a pointer. Panics if <code>ptr</code> is null.</p>
|
||
<h5 id="safety"><a class="doc-anchor" href="#safety">§</a>Safety</h5>
|
||
<ul>
|
||
<li><code>ptr</code> must be a valid pointer to a Python object</li>
|
||
<li><code>ptr</code> must be an owned Python reference, as the <code>Bound<'py, PyAny></code> will assume ownership</li>
|
||
</ul>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.from_owned_ptr_or_opt" class="method"><a class="src rightside" href="../../src/pyo3/instance.rs.html#123-125">Source</a><h4 class="code-header">pub unsafe fn <a href="#method.from_owned_ptr_or_opt" class="fn">from_owned_ptr_or_opt</a>(
|
||
py: <a class="struct" href="../marker/struct.Python.html" title="struct pyo3::marker::Python">Python</a><'py>,
|
||
ptr: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.pointer.html">*mut </a><a class="struct" href="../ffi/struct.PyObject.html" title="struct pyo3::ffi::PyObject">PyObject</a>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.85.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></h4></section></summary><div class="docblock"><p>Constructs a new <code>Bound<'py, PyAny></code> from a pointer. Returns <code>None</code> if <code>ptr</code> is null.</p>
|
||
<h5 id="safety-1"><a class="doc-anchor" href="#safety-1">§</a>Safety</h5>
|
||
<ul>
|
||
<li><code>ptr</code> must be a valid pointer to a Python object, or null</li>
|
||
<li><code>ptr</code> must be an owned Python reference, as the <code>Bound<'py, PyAny></code> will assume ownership</li>
|
||
</ul>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.from_owned_ptr_or_err" class="method"><a class="src rightside" href="../../src/pyo3/instance.rs.html#135-140">Source</a><h4 class="code-header">pub unsafe fn <a href="#method.from_owned_ptr_or_err" class="fn">from_owned_ptr_or_err</a>(
|
||
py: <a class="struct" href="../marker/struct.Python.html" title="struct pyo3::marker::Python">Python</a><'py>,
|
||
ptr: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.pointer.html">*mut </a><a class="struct" href="../ffi/struct.PyObject.html" title="struct pyo3::ffi::PyObject">PyObject</a>,
|
||
) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><Self></h4></section></summary><div class="docblock"><p>Constructs a new <code>Bound<'py, PyAny></code> from a pointer. Returns an <code>Err</code> by calling <code>PyErr::fetch</code>
|
||
if <code>ptr</code> is null.</p>
|
||
<h5 id="safety-2"><a class="doc-anchor" href="#safety-2">§</a>Safety</h5>
|
||
<ul>
|
||
<li><code>ptr</code> must be a valid pointer to a Python object, or null</li>
|
||
<li><code>ptr</code> must be an owned Python reference, as the <code>Bound<'py, PyAny></code> will assume ownership</li>
|
||
</ul>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.from_borrowed_ptr" class="method"><a class="src rightside" href="../../src/pyo3/instance.rs.html#166-168">Source</a><h4 class="code-header">pub unsafe fn <a href="#method.from_borrowed_ptr" class="fn">from_borrowed_ptr</a>(py: <a class="struct" href="../marker/struct.Python.html" title="struct pyo3::marker::Python">Python</a><'py>, ptr: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.pointer.html">*mut </a><a class="struct" href="../ffi/struct.PyObject.html" title="struct pyo3::ffi::PyObject">PyObject</a>) -> Self</h4></section></summary><div class="docblock"><p>Constructs a new <code>Bound<'py, PyAny></code> from a pointer by creating a new Python reference.
|
||
Panics if <code>ptr</code> is null.</p>
|
||
<h5 id="safety-3"><a class="doc-anchor" href="#safety-3">§</a>Safety</h5>
|
||
<ul>
|
||
<li><code>ptr</code> must be a valid pointer to a Python object</li>
|
||
</ul>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.from_borrowed_ptr_or_opt" class="method"><a class="src rightside" href="../../src/pyo3/instance.rs.html#177-182">Source</a><h4 class="code-header">pub unsafe fn <a href="#method.from_borrowed_ptr_or_opt" class="fn">from_borrowed_ptr_or_opt</a>(
|
||
py: <a class="struct" href="../marker/struct.Python.html" title="struct pyo3::marker::Python">Python</a><'py>,
|
||
ptr: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.pointer.html">*mut </a><a class="struct" href="../ffi/struct.PyObject.html" title="struct pyo3::ffi::PyObject">PyObject</a>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.85.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></h4></section></summary><div class="docblock"><p>Constructs a new <code>Bound<'py, PyAny></code> from a pointer by creating a new Python reference.
|
||
Returns <code>None</code> if <code>ptr</code> is null.</p>
|
||
<h5 id="safety-4"><a class="doc-anchor" href="#safety-4">§</a>Safety</h5>
|
||
<ul>
|
||
<li><code>ptr</code> must be a valid pointer to a Python object, or null</li>
|
||
</ul>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.from_borrowed_ptr_or_err" class="method"><a class="src rightside" href="../../src/pyo3/instance.rs.html#191-196">Source</a><h4 class="code-header">pub unsafe fn <a href="#method.from_borrowed_ptr_or_err" class="fn">from_borrowed_ptr_or_err</a>(
|
||
py: <a class="struct" href="../marker/struct.Python.html" title="struct pyo3::marker::Python">Python</a><'py>,
|
||
ptr: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.pointer.html">*mut </a><a class="struct" href="../ffi/struct.PyObject.html" title="struct pyo3::ffi::PyObject">PyObject</a>,
|
||
) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><Self></h4></section></summary><div class="docblock"><p>Constructs a new <code>Bound<'py, PyAny></code> from a pointer by creating a new Python reference.
|
||
Returns an <code>Err</code> by calling <code>PyErr::fetch</code> if <code>ptr</code> is null.</p>
|
||
<h5 id="safety-5"><a class="doc-anchor" href="#safety-5">§</a>Safety</h5>
|
||
<ul>
|
||
<li><code>ptr</code> must be a valid pointer to a Python object, or null</li>
|
||
</ul>
|
||
</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Bound%3C'py,+T%3E-1" class="impl"><a class="src rightside" href="../../src/pyo3/instance.rs.html#229-474">Source</a><a href="#impl-Bound%3C'py,+T%3E-1" class="anchor">§</a><h3 class="code-header">impl<'py, T> <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</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></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow" class="method"><a class="src rightside" href="../../src/pyo3/instance.rs.html#268-270">Source</a><h4 class="code-header">pub fn <a href="#method.borrow" class="fn">borrow</a>(&self) -> <a class="struct" href="../pycell/struct.PyRef.html" title="struct pyo3::pycell::PyRef">PyRef</a><'py, T></h4></section></summary><div class="docblock"><p>Immutably borrows the value <code>T</code>.</p>
|
||
<p>This borrow lasts while the returned <a href="../pycell/struct.PyRef.html" title="struct pyo3::pycell::PyRef"><code>PyRef</code></a> exists.
|
||
Multiple immutable borrows can be taken out at the same time.</p>
|
||
<p>For frozen classes, the simpler <a href="../struct.Bound.html#method.get" title="method pyo3::Bound::get"><code>get</code></a> is available.</p>
|
||
<h5 id="examples-1"><a class="doc-anchor" href="#examples-1">§</a>Examples</h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="attr">#[pyclass]
|
||
</span><span class="kw">struct </span>Foo {
|
||
inner: u8,
|
||
}
|
||
|
||
Python::with_gil(|py| -> PyResult<()> {
|
||
<span class="kw">let </span>foo: Bound<<span class="lifetime">'_</span>, Foo> = Bound::new(py, Foo { inner: <span class="number">73 </span>})<span class="question-mark">?</span>;
|
||
<span class="kw">let </span>inner: <span class="kw-2">&</span>u8 = <span class="kw-2">&</span>foo.borrow().inner;
|
||
|
||
<span class="macro">assert_eq!</span>(<span class="kw-2">*</span>inner, <span class="number">73</span>);
|
||
<span class="prelude-val">Ok</span>(())
|
||
})<span class="question-mark">?</span>;</code></pre></div>
|
||
<h5 id="panics"><a class="doc-anchor" href="#panics">§</a>Panics</h5>
|
||
<p>Panics if the value is currently mutably borrowed. For a non-panicking variant, use
|
||
<a href="#method.try_borrow"><code>try_borrow</code></a>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.borrow_mut" class="method"><a class="src rightside" href="../../src/pyo3/instance.rs.html#303-308">Source</a><h4 class="code-header">pub fn <a href="#method.borrow_mut" class="fn">borrow_mut</a>(&self) -> <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></h4></section></summary><div class="docblock"><p>Mutably borrows the value <code>T</code>.</p>
|
||
<p>This borrow lasts while the returned <a href="../pycell/struct.PyRefMut.html" title="struct pyo3::pycell::PyRefMut"><code>PyRefMut</code></a> exists.</p>
|
||
<h5 id="examples-2"><a class="doc-anchor" href="#examples-2">§</a>Examples</h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="attr">#[pyclass]
|
||
</span><span class="kw">struct </span>Foo {
|
||
inner: u8,
|
||
}
|
||
|
||
Python::with_gil(|py| -> PyResult<()> {
|
||
<span class="kw">let </span>foo: Bound<<span class="lifetime">'_</span>, Foo> = Bound::new(py, Foo { inner: <span class="number">73 </span>})<span class="question-mark">?</span>;
|
||
foo.borrow_mut().inner = <span class="number">35</span>;
|
||
|
||
<span class="macro">assert_eq!</span>(foo.borrow().inner, <span class="number">35</span>);
|
||
<span class="prelude-val">Ok</span>(())
|
||
})<span class="question-mark">?</span>;</code></pre></div>
|
||
<h5 id="panics-1"><a class="doc-anchor" href="#panics-1">§</a>Panics</h5>
|
||
<p>Panics if the value is currently borrowed. For a non-panicking variant, use
|
||
<a href="#method.try_borrow_mut"><code>try_borrow_mut</code></a>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.try_borrow" class="method"><a class="src rightside" href="../../src/pyo3/instance.rs.html#318-320">Source</a><h4 class="code-header">pub fn <a href="#method.try_borrow" class="fn">try_borrow</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.85.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="../pycell/struct.PyRef.html" title="struct pyo3::pycell::PyRef">PyRef</a><'py, T>, <a class="struct" href="../pycell/struct.PyBorrowError.html" title="struct pyo3::pycell::PyBorrowError">PyBorrowError</a>></h4></section></summary><div class="docblock"><p>Attempts to immutably borrow the value <code>T</code>, returning an error if the value is currently mutably borrowed.</p>
|
||
<p>The borrow lasts while the returned <a href="../pycell/struct.PyRef.html" title="struct pyo3::pycell::PyRef"><code>PyRef</code></a> exists.</p>
|
||
<p>This is the non-panicking variant of <a href="#method.borrow"><code>borrow</code></a>.</p>
|
||
<p>For frozen classes, the simpler <a href="../struct.Bound.html#method.get" title="method pyo3::Bound::get"><code>get</code></a> is available.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.try_borrow_mut" class="method"><a class="src rightside" href="../../src/pyo3/instance.rs.html#328-333">Source</a><h4 class="code-header">pub fn <a href="#method.try_borrow_mut" class="fn">try_borrow_mut</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.85.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="../pycell/struct.PyRefMut.html" title="struct pyo3::pycell::PyRefMut">PyRefMut</a><'py, T>, <a class="struct" href="../pycell/struct.PyBorrowMutError.html" title="struct pyo3::pycell::PyBorrowMutError">PyBorrowMutError</a>><div class="where">where
|
||
T: <a class="trait" href="../pyclass/trait.PyClass.html" title="trait pyo3::pyclass::PyClass">PyClass</a><Frozen = False>,</div></h4></section></summary><div class="docblock"><p>Attempts to mutably borrow the value <code>T</code>, returning an error if the value is currently borrowed.</p>
|
||
<p>The borrow lasts while the returned <a href="../pycell/struct.PyRefMut.html" title="struct pyo3::pycell::PyRefMut"><code>PyRefMut</code></a> exists.</p>
|
||
<p>This is the non-panicking variant of <a href="#method.borrow_mut"><code>borrow_mut</code></a>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.get" class="method"><a class="src rightside" href="../../src/pyo3/instance.rs.html#359-364">Source</a><h4 class="code-header">pub fn <a href="#method.get" class="fn">get</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&T</a><div class="where">where
|
||
T: <a class="trait" href="../pyclass/trait.PyClass.html" title="trait pyo3::pyclass::PyClass">PyClass</a><Frozen = True> + <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,</div></h4></section></summary><div class="docblock"><p>Provide an immutable borrow of the value <code>T</code> without acquiring the GIL.</p>
|
||
<p>This is available if the class is <a href="../attr.pyclass.html" title="attr pyo3::pyclass"><code>frozen</code></a> and <a href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sync.html" title="trait core::marker::Sync"><code>Sync</code></a>.</p>
|
||
<h5 id="examples-3"><a class="doc-anchor" href="#examples-3">§</a>Examples</h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>std::sync::atomic::{AtomicUsize, Ordering};
|
||
|
||
<span class="attr">#[pyclass(frozen)]
|
||
</span><span class="kw">struct </span>FrozenCounter {
|
||
value: AtomicUsize,
|
||
}
|
||
|
||
Python::with_gil(|py| {
|
||
<span class="kw">let </span>counter = FrozenCounter { value: AtomicUsize::new(<span class="number">0</span>) };
|
||
|
||
<span class="kw">let </span>py_counter = Bound::new(py, counter).unwrap();
|
||
|
||
py_counter.get().value.fetch_add(<span class="number">1</span>, Ordering::Relaxed);
|
||
});</code></pre></div>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.as_super" class="method"><a class="src rightside" href="../../src/pyo3/instance.rs.html#413-416">Source</a><h4 class="code-header">pub fn <a href="#method.as_super" class="fn">as_super</a>(&self) -> &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, T::BaseType></h4></section></summary><div class="docblock"><p>Upcast this <code>Bound<PyClass></code> to its base type by reference.</p>
|
||
<p>If this type defined an explicit base class in its <code>pyclass</code> declaration
|
||
(e.g. <code>#[pyclass(extends = BaseType)]</code>), the returned type will be
|
||
<code>&Bound<BaseType></code>. If an explicit base class was <em>not</em> declared, the
|
||
return value will be <code>&Bound<PyAny></code> (making this method equivalent
|
||
to <a href="../struct.Bound.html#method.as_any" title="method pyo3::Bound::as_any"><code>as_any</code></a>).</p>
|
||
<p>This method is particularly useful for calling methods defined in an
|
||
extension trait that has been implemented for <code>Bound<BaseType></code>.</p>
|
||
<p>See also the <a href="../struct.Bound.html#method.into_super" title="method pyo3::Bound::into_super"><code>into_super</code></a> method to upcast by value, and the
|
||
<a href="../pycell/struct.PyRef.html#method.as_super" title="method pyo3::pycell::PyRef::as_super"><code>PyRef::as_super</code></a>/<a href="../pycell/struct.PyRefMut.html#method.as_super" title="method pyo3::pycell::PyRefMut::as_super"><code>PyRefMut::as_super</code></a> methods for upcasting a pyclass
|
||
that has already been <a href="../struct.Bound.html#method.borrow" title="method pyo3::Bound::borrow"><code>borrow</code></a>ed.</p>
|
||
<h5 id="example-calling-a-method-defined-on-the-bound-base-type"><a class="doc-anchor" href="#example-calling-a-method-defined-on-the-bound-base-type">§</a>Example: Calling a method defined on the <code>Bound</code> base type</h5>
|
||
<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="attr">#[pyclass(subclass)]
|
||
</span><span class="kw">struct </span>BaseClass;
|
||
|
||
<span class="kw">trait </span>MyClassMethods<<span class="lifetime">'py</span>> {
|
||
<span class="kw">fn </span>pyrepr(<span class="kw-2">&</span><span class="self">self</span>) -> PyResult<String>;
|
||
}
|
||
<span class="kw">impl</span><<span class="lifetime">'py</span>> MyClassMethods<<span class="lifetime">'py</span>> <span class="kw">for </span>Bound<<span class="lifetime">'py</span>, BaseClass> {
|
||
<span class="kw">fn </span>pyrepr(<span class="kw-2">&</span><span class="self">self</span>) -> PyResult<String> {
|
||
<span class="self">self</span>.call_method0(<span class="string">"__repr__"</span>)<span class="question-mark">?</span>.extract()
|
||
}
|
||
}
|
||
|
||
<span class="attr">#[pyclass(extends = BaseClass)]
|
||
</span><span class="kw">struct </span>SubClass;
|
||
|
||
Python::with_gil(|py| {
|
||
<span class="kw">let </span>obj = Bound::new(py, (SubClass, BaseClass)).unwrap();
|
||
<span class="macro">assert!</span>(obj.as_super().pyrepr().is_ok());
|
||
})</code></pre></div>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.into_super" class="method"><a class="src rightside" href="../../src/pyo3/instance.rs.html#465-468">Source</a><h4 class="code-header">pub fn <a href="#method.into_super" class="fn">into_super</a>(self) -> <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, T::BaseType></h4></section></summary><div class="docblock"><p>Upcast this <code>Bound<PyClass></code> to its base type by value.</p>
|
||
<p>If this type defined an explicit base class in its <code>pyclass</code> declaration
|
||
(e.g. <code>#[pyclass(extends = BaseType)]</code>), the returned type will be
|
||
<code>Bound<BaseType></code>. If an explicit base class was <em>not</em> declared, the
|
||
return value will be <code>Bound<PyAny></code> (making this method equivalent
|
||
to <a href="../struct.Bound.html#method.into_any" title="method pyo3::Bound::into_any"><code>into_any</code></a>).</p>
|
||
<p>This method is particularly useful for calling methods defined in an
|
||
extension trait that has been implemented for <code>Bound<BaseType></code>.</p>
|
||
<p>See also the <a href="../struct.Bound.html#method.as_super" title="method pyo3::Bound::as_super"><code>as_super</code></a> method to upcast by reference, and the
|
||
<a href="../pycell/struct.PyRef.html#method.into_super" title="method pyo3::pycell::PyRef::into_super"><code>PyRef::into_super</code></a>/<a href="../pycell/struct.PyRefMut.html#method.into_super" title="method pyo3::pycell::PyRefMut::into_super"><code>PyRefMut::into_super</code></a> methods for upcasting a pyclass
|
||
that has already been <a href="../struct.Bound.html#method.borrow" title="method pyo3::Bound::borrow"><code>borrow</code></a>ed.</p>
|
||
<h5 id="example-calling-a-method-defined-on-the-bound-base-type-1"><a class="doc-anchor" href="#example-calling-a-method-defined-on-the-bound-base-type-1">§</a>Example: Calling a method defined on the <code>Bound</code> base type</h5>
|
||
<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="attr">#[pyclass(subclass)]
|
||
</span><span class="kw">struct </span>BaseClass;
|
||
|
||
<span class="kw">trait </span>MyClassMethods<<span class="lifetime">'py</span>> {
|
||
<span class="kw">fn </span>pyrepr(<span class="self">self</span>) -> PyResult<String>;
|
||
}
|
||
<span class="kw">impl</span><<span class="lifetime">'py</span>> MyClassMethods<<span class="lifetime">'py</span>> <span class="kw">for </span>Bound<<span class="lifetime">'py</span>, BaseClass> {
|
||
<span class="kw">fn </span>pyrepr(<span class="self">self</span>) -> PyResult<String> {
|
||
<span class="self">self</span>.call_method0(<span class="string">"__repr__"</span>)<span class="question-mark">?</span>.extract()
|
||
}
|
||
}
|
||
|
||
<span class="attr">#[pyclass(extends = BaseClass)]
|
||
</span><span class="kw">struct </span>SubClass;
|
||
|
||
Python::with_gil(|py| {
|
||
<span class="kw">let </span>obj = Bound::new(py, (SubClass, BaseClass)).unwrap();
|
||
<span class="macro">assert!</span>(obj.into_super().pyrepr().is_ok());
|
||
})</code></pre></div>
|
||
</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Bound%3C'py,+T%3E-2" class="impl"><a class="src rightside" href="../../src/pyo3/instance.rs.html#542-614">Source</a><a href="#impl-Bound%3C'py,+T%3E-2" class="anchor">§</a><h3 class="code-header">impl<'py, T> <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, T></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.py" class="method"><a class="src rightside" href="../../src/pyo3/instance.rs.html#545-547">Source</a><h4 class="code-header">pub fn <a href="#method.py" class="fn">py</a>(&self) -> <a class="struct" href="../marker/struct.Python.html" title="struct pyo3::marker::Python">Python</a><'py></h4></section></summary><div class="docblock"><p>Returns the GIL token associated with this object.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.as_ptr" class="method"><a class="src rightside" href="../../src/pyo3/instance.rs.html#558-560">Source</a><h4 class="code-header">pub fn <a href="#method.as_ptr" class="fn">as_ptr</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.pointer.html">*mut </a><a class="struct" href="../ffi/struct.PyObject.html" title="struct pyo3::ffi::PyObject">PyObject</a></h4></section></summary><div class="docblock"><p>Returns the raw FFI pointer represented by self.</p>
|
||
<h5 id="safety-6"><a class="doc-anchor" href="#safety-6">§</a>Safety</h5>
|
||
<p>Callers are responsible for ensuring that the pointer does not outlive self.</p>
|
||
<p>The reference is borrowed; callers should not decrease the reference count
|
||
when they are finished with the pointer.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.into_ptr" class="method"><a class="src rightside" href="../../src/pyo3/instance.rs.html#569-571">Source</a><h4 class="code-header">pub fn <a href="#method.into_ptr" class="fn">into_ptr</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.pointer.html">*mut </a><a class="struct" href="../ffi/struct.PyObject.html" title="struct pyo3::ffi::PyObject">PyObject</a></h4></section></summary><div class="docblock"><p>Returns an owned raw FFI pointer represented by self.</p>
|
||
<h5 id="safety-7"><a class="doc-anchor" href="#safety-7">§</a>Safety</h5>
|
||
<p>The reference is owned; when finished the caller should either transfer ownership
|
||
of the pointer or decrease the reference count (e.g. with <a href="../ffi/fn.Py_DecRef.html" title="fn pyo3::ffi::Py_DecRef"><code>pyo3::ffi::Py_DecRef</code></a>).</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.as_any" class="method"><a class="src rightside" href="../../src/pyo3/instance.rs.html#575-579">Source</a><h4 class="code-header">pub fn <a href="#method.as_any" class="fn">as_any</a>(&self) -> &<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>></h4></section></summary><div class="docblock"><p>Helper to cast to <code>Bound<'py, PyAny></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.into_any" class="method"><a class="src rightside" href="../../src/pyo3/instance.rs.html#583-586">Source</a><h4 class="code-header">pub fn <a href="#method.into_any" class="fn">into_any</a>(self) -> <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>></h4></section></summary><div class="docblock"><p>Helper to cast to <code>Bound<'py, PyAny></code>, transferring ownership.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.as_borrowed" class="method"><a class="src rightside" href="../../src/pyo3/instance.rs.html#590-596">Source</a><h4 class="code-header">pub fn <a href="#method.as_borrowed" class="fn">as_borrowed</a><'a>(&'a self) -> <a class="struct" href="../struct.Borrowed.html" title="struct pyo3::Borrowed">Borrowed</a><'a, 'py, T></h4></section></summary><div class="docblock"><p>Casts this <code>Bound<T></code> to a <code>Borrowed<T></code> smart pointer.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.unbind" class="method"><a class="src rightside" href="../../src/pyo3/instance.rs.html#601-606">Source</a><h4 class="code-header">pub fn <a href="#method.unbind" class="fn">unbind</a>(self) -> <a class="struct" href="../struct.Py.html" title="struct pyo3::Py">Py</a><T></h4></section></summary><div class="docblock"><p>Removes the connection for this <code>Bound<T></code> from the GIL, allowing
|
||
it to cross thread boundaries.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.as_unbound" class="method"><a class="src rightside" href="../../src/pyo3/instance.rs.html#611-613">Source</a><h4 class="code-header">pub fn <a href="#method.as_unbound" class="fn">as_unbound</a>(&self) -> &<a class="struct" href="../struct.Py.html" title="struct pyo3::Py">Py</a><T></h4></section></summary><div class="docblock"><p>Removes the connection for this <code>Bound<T></code> from the GIL, allowing
|
||
it to cross thread boundaries, without transferring ownership.</p>
|
||
</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Bound%3C'py,+PyIterator%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/iterator.rs.html#63-82">Source</a><a href="#impl-Bound%3C'py,+PyIterator%3E" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyIterator.html" title="struct pyo3::types::PyIterator">PyIterator</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.send" class="method"><a class="src rightside" href="../../src/pyo3/types/iterator.rs.html#69-81">Source</a><h4 class="code-header">pub fn <a href="#method.send" class="fn">send</a>(&self, value: &<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><PySendResult<'py>></h4></section></summary><div class="docblock"><p>Sends a value into a python generator. This is the equivalent of calling <code>generator.send(value)</code> in Python.
|
||
This resumes the generator and continues its execution until the next <code>yield</code> or <code>return</code> statement.
|
||
If the generator exits without returning a value, this function returns a <code>StopException</code>.
|
||
The first call to <code>send</code> must be made with <code>None</code> as the argument to start the generator, failing to do so will raise a <code>TypeError</code>.</p>
|
||
</div></details></div></details></div><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Add%3C%26Bound%3C'py,+PyComplex%3E%3E-for-Bound%3C'py,+PyComplex%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/complex.rs.html#105">Source</a><a href="#impl-Add%3C%26Bound%3C'py,+PyComplex%3E%3E-for-Bound%3C'py,+PyComplex%3E" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Add.html" title="trait core::ops::arith::Add">Add</a><&<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>>> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Output-6" class="associatedtype trait-impl"><a class="src rightside" href="../../src/pyo3/types/complex.rs.html#105">Source</a><a href="#associatedtype.Output-6" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Add.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>></h4></section></summary><div class='docblock'>The resulting type after applying the <code>+</code> operator.</div></details><details class="toggle method-toggle" open><summary><section id="method.add-4" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/complex.rs.html#105">Source</a><a href="#method.add-4" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Add.html#tymethod.add" class="fn">add</a>(self, other: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>>) -> <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>></h4></section></summary><div class='docblock'>Performs the <code>+</code> operation. <a href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Add.html#tymethod.add">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Add%3CBound%3C'py,+PyComplex%3E%3E-for-%26Bound%3C'py,+PyComplex%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/complex.rs.html#105">Source</a><a href="#impl-Add%3CBound%3C'py,+PyComplex%3E%3E-for-%26Bound%3C'py,+PyComplex%3E" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Add.html" title="trait core::ops::arith::Add">Add</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>>> for &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Output-4" class="associatedtype trait-impl"><a class="src rightside" href="../../src/pyo3/types/complex.rs.html#105">Source</a><a href="#associatedtype.Output-4" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Add.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>></h4></section></summary><div class='docblock'>The resulting type after applying the <code>+</code> operator.</div></details><details class="toggle method-toggle" open><summary><section id="method.add-2" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/complex.rs.html#105">Source</a><a href="#method.add-2" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Add.html#tymethod.add" class="fn">add</a>(self, other: <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>>) -> <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>></h4></section></summary><div class='docblock'>Performs the <code>+</code> operation. <a href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Add.html#tymethod.add">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Add-for-%26Bound%3C'py,+PyComplex%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/complex.rs.html#105">Source</a><a href="#impl-Add-for-%26Bound%3C'py,+PyComplex%3E" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Add.html" title="trait core::ops::arith::Add">Add</a> for &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Output-3" class="associatedtype trait-impl"><a class="src rightside" href="../../src/pyo3/types/complex.rs.html#105">Source</a><a href="#associatedtype.Output-3" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Add.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>></h4></section></summary><div class='docblock'>The resulting type after applying the <code>+</code> operator.</div></details><details class="toggle method-toggle" open><summary><section id="method.add-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/complex.rs.html#105">Source</a><a href="#method.add-1" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Add.html#tymethod.add" class="fn">add</a>(self, other: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>>) -> <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>></h4></section></summary><div class='docblock'>Performs the <code>+</code> operation. <a href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Add.html#tymethod.add">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Add-for-Bound%3C'py,+PyComplex%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/complex.rs.html#105">Source</a><a href="#impl-Add-for-Bound%3C'py,+PyComplex%3E" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Add.html" title="trait core::ops::arith::Add">Add</a> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Output-5" class="associatedtype trait-impl"><a class="src rightside" href="../../src/pyo3/types/complex.rs.html#105">Source</a><a href="#associatedtype.Output-5" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Add.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>></h4></section></summary><div class='docblock'>The resulting type after applying the <code>+</code> operator.</div></details><details class="toggle method-toggle" open><summary><section id="method.add-3" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/complex.rs.html#105">Source</a><a href="#method.add-3" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Add.html#tymethod.add" class="fn">add</a>(self, other: <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>>) -> <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>></h4></section></summary><div class='docblock'>Performs the <code>+</code> operation. <a href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Add.html#tymethod.add">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-AsPyPointer-for-Bound%3C'_,+T%3E" class="impl"><a class="src rightside" href="../../src/pyo3/instance.rs.html#616-621">Source</a><a href="#impl-AsPyPointer-for-Bound%3C'_,+T%3E" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="../conversion/trait.AsPyPointer.html" title="trait pyo3::conversion::AsPyPointer">AsPyPointer</a> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, T></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_ptr-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/instance.rs.html#618-620">Source</a><a href="#method.as_ptr-1" class="anchor">§</a><h4 class="code-header">fn <a href="../conversion/trait.AsPyPointer.html#tymethod.as_ptr" class="fn">as_ptr</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.pointer.html">*mut </a><a class="struct" href="../ffi/struct.PyObject.html" title="struct pyo3::ffi::PyObject">PyObject</a></h4></section></summary><div class='docblock'>Returns the underlying FFI pointer as a borrowed pointer.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-AsRef%3CBound%3C'py,+PyAny%3E%3E-for-Bound%3C'py,+T%3E" class="impl"><a class="src rightside" href="../../src/pyo3/instance.rs.html#521-526">Source</a><a href="#impl-AsRef%3CBound%3C'py,+PyAny%3E%3E-for-Bound%3C'py,+T%3E" class="anchor">§</a><h3 class="code-header">impl<'py, T> <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<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>>> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, T></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_ref" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/instance.rs.html#523-525">Source</a><a href="#method.as_ref" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/convert/trait.AsRef.html#tymethod.as_ref" class="fn">as_ref</a>(&self) -> &<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>></h4></section></summary><div class='docblock'>Converts this type into a shared reference of the (usually inferred) input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-BoundObject%3C'py,+T%3E-for-Bound%3C'py,+T%3E" class="impl"><a class="src rightside" href="../../src/pyo3/instance.rs.html#623-649">Source</a><a href="#impl-BoundObject%3C'py,+T%3E-for-Bound%3C'py,+T%3E" class="anchor">§</a><h3 class="code-header">impl<'py, T> <a class="trait" href="../trait.BoundObject.html" title="trait pyo3::BoundObject">BoundObject</a><'py, T> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, T></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Any" class="associatedtype trait-impl"><a class="src rightside" href="../../src/pyo3/instance.rs.html#624">Source</a><a href="#associatedtype.Any" class="anchor">§</a><h4 class="code-header">type <a href="../trait.BoundObject.html#associatedtype.Any" class="associatedtype">Any</a> = <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>></h4></section></summary><div class='docblock'>Type erased version of <code>Self</code></div></details><details class="toggle method-toggle" open><summary><section id="method.as_borrowed-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/instance.rs.html#626-628">Source</a><a href="#method.as_borrowed-1" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.BoundObject.html#tymethod.as_borrowed" class="fn">as_borrowed</a>(&self) -> <a class="struct" href="../struct.Borrowed.html" title="struct pyo3::Borrowed">Borrowed</a><'_, 'py, T></h4></section></summary><div class='docblock'>Borrow this smart pointer.</div></details><details class="toggle method-toggle" open><summary><section id="method.into_bound" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/instance.rs.html#630-632">Source</a><a href="#method.into_bound" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.BoundObject.html#tymethod.into_bound" class="fn">into_bound</a>(self) -> <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, T></h4></section></summary><div class='docblock'>Turns this smart pointer into an owned [<code>Bound<'py, T></code>]</div></details><details class="toggle method-toggle" open><summary><section id="method.into_any-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/instance.rs.html#634-636">Source</a><a href="#method.into_any-1" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.BoundObject.html#tymethod.into_any" class="fn">into_any</a>(self) -> Self::<a class="associatedtype" href="../trait.BoundObject.html#associatedtype.Any" title="type pyo3::BoundObject::Any">Any</a></h4></section></summary><div class='docblock'>Upcast the target type of this smart pointer</div></details><details class="toggle method-toggle" open><summary><section id="method.into_ptr-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/instance.rs.html#638-640">Source</a><a href="#method.into_ptr-1" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.BoundObject.html#tymethod.into_ptr" class="fn">into_ptr</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.pointer.html">*mut </a><a class="struct" href="../ffi/struct.PyObject.html" title="struct pyo3::ffi::PyObject">PyObject</a></h4></section></summary><div class='docblock'>Turn this smart pointer into a strong reference pointer</div></details><details class="toggle method-toggle" open><summary><section id="method.as_ptr-2" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/instance.rs.html#642-644">Source</a><a href="#method.as_ptr-2" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.BoundObject.html#tymethod.as_ptr" class="fn">as_ptr</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.pointer.html">*mut </a><a class="struct" href="../ffi/struct.PyObject.html" title="struct pyo3::ffi::PyObject">PyObject</a></h4></section></summary><div class='docblock'>Turn this smart pointer into a borrowed reference pointer</div></details><details class="toggle method-toggle" open><summary><section id="method.unbind-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/instance.rs.html#646-648">Source</a><a href="#method.unbind-1" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.BoundObject.html#tymethod.unbind" class="fn">unbind</a>(self) -> <a class="struct" href="../struct.Py.html" title="struct pyo3::Py">Py</a><T></h4></section></summary><div class='docblock'>Turn this smart pointer into an owned <a href="../struct.Py.html" title="struct pyo3::Py"><code>Py<T></code></a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Clone-for-Bound%3C'_,+T%3E" class="impl"><a class="src rightside" href="../../src/pyo3/instance.rs.html#528-533">Source</a><a href="#impl-Clone-for-Bound%3C'_,+T%3E" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, T></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/instance.rs.html#530-532">Source</a><a href="#method.clone" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/clone/trait.Clone.html#tymethod.clone" class="fn">clone</a>(&self) -> Self</h4></section></summary><div class='docblock'>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.85.1/core/clone/trait.Clone.html#tymethod.clone">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/clone.rs.html#174">Source</a></span><a href="#method.clone_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/clone/trait.Clone.html#method.clone_from" class="fn">clone_from</a>(&mut self, source: &Self)</h4></section></summary><div class='docblock'>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.85.1/core/clone/trait.Clone.html#method.clone_from">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Debug-for-Bound%3C'_,+T%3E" class="impl"><a class="src rightside" href="../../src/pyo3/instance.rs.html#476-481">Source</a><a href="#impl-Debug-for-Bound%3C'_,+T%3E" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, T></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/instance.rs.html#477-480">Source</a><a href="#method.fmt" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/fmt/trait.Debug.html#tymethod.fmt" class="fn">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/1.85.1/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</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><<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.85.1/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.85.1/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Deref-for-Bound%3C'py,+T%3E" class="impl"><a class="src rightside" href="../../src/pyo3/instance.rs.html#509-519">Source</a><a href="#impl-Deref-for-Bound%3C'py,+T%3E" class="anchor">§</a><h3 class="code-header">impl<'py, T> <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a> 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="../types/trait.DerefToPyAny.html" title="trait pyo3::types::DerefToPyAny">DerefToPyAny</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Target-2" class="associatedtype trait-impl"><a class="src rightside" href="../../src/pyo3/instance.rs.html#513">Source</a><a href="#associatedtype.Target-2" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.1/core/ops/deref/trait.Deref.html#associatedtype.Target" class="associatedtype">Target</a> = <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>></h4></section></summary><div class='docblock'>The resulting type after dereferencing.</div></details><details class="toggle method-toggle" open><summary><section id="method.deref" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/instance.rs.html#516-518">Source</a><a href="#method.deref" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/ops/deref/trait.Deref.html#tymethod.deref" class="fn">deref</a>(&self) -> &<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>></h4></section></summary><div class='docblock'>Dereferences the value.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Display-for-Bound%3C'_,+T%3E" class="impl"><a class="src rightside" href="../../src/pyo3/instance.rs.html#483-488">Source</a><a href="#impl-Display-for-Bound%3C'_,+T%3E" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, T></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.fmt-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/instance.rs.html#484-487">Source</a><a href="#method.fmt-1" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/fmt/trait.Display.html#tymethod.fmt" class="fn">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/1.85.1/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</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><<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.85.1/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.85.1/core/fmt/trait.Display.html#tymethod.fmt">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Div%3C%26Bound%3C'py,+PyComplex%3E%3E-for-Bound%3C'py,+PyComplex%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/complex.rs.html#108">Source</a><a href="#impl-Div%3C%26Bound%3C'py,+PyComplex%3E%3E-for-Bound%3C'py,+PyComplex%3E" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Div.html" title="trait core::ops::arith::Div">Div</a><&<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>>> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Output-18" class="associatedtype trait-impl"><a class="src rightside" href="../../src/pyo3/types/complex.rs.html#108">Source</a><a href="#associatedtype.Output-18" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Div.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>></h4></section></summary><div class='docblock'>The resulting type after applying the <code>/</code> operator.</div></details><details class="toggle method-toggle" open><summary><section id="method.div-4" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/complex.rs.html#108">Source</a><a href="#method.div-4" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Div.html#tymethod.div" class="fn">div</a>(self, other: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>>) -> <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>></h4></section></summary><div class='docblock'>Performs the <code>/</code> operation. <a href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Div.html#tymethod.div">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Div%3CBound%3C'py,+PyComplex%3E%3E-for-%26Bound%3C'py,+PyComplex%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/complex.rs.html#108">Source</a><a href="#impl-Div%3CBound%3C'py,+PyComplex%3E%3E-for-%26Bound%3C'py,+PyComplex%3E" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Div.html" title="trait core::ops::arith::Div">Div</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>>> for &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Output-16" class="associatedtype trait-impl"><a class="src rightside" href="../../src/pyo3/types/complex.rs.html#108">Source</a><a href="#associatedtype.Output-16" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Div.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>></h4></section></summary><div class='docblock'>The resulting type after applying the <code>/</code> operator.</div></details><details class="toggle method-toggle" open><summary><section id="method.div-2" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/complex.rs.html#108">Source</a><a href="#method.div-2" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Div.html#tymethod.div" class="fn">div</a>(self, other: <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>>) -> <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>></h4></section></summary><div class='docblock'>Performs the <code>/</code> operation. <a href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Div.html#tymethod.div">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Div-for-%26Bound%3C'py,+PyComplex%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/complex.rs.html#108">Source</a><a href="#impl-Div-for-%26Bound%3C'py,+PyComplex%3E" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Div.html" title="trait core::ops::arith::Div">Div</a> for &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Output-15" class="associatedtype trait-impl"><a class="src rightside" href="../../src/pyo3/types/complex.rs.html#108">Source</a><a href="#associatedtype.Output-15" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Div.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>></h4></section></summary><div class='docblock'>The resulting type after applying the <code>/</code> operator.</div></details><details class="toggle method-toggle" open><summary><section id="method.div-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/complex.rs.html#108">Source</a><a href="#method.div-1" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Div.html#tymethod.div" class="fn">div</a>(self, other: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>>) -> <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>></h4></section></summary><div class='docblock'>Performs the <code>/</code> operation. <a href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Div.html#tymethod.div">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Div-for-Bound%3C'py,+PyComplex%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/complex.rs.html#108">Source</a><a href="#impl-Div-for-Bound%3C'py,+PyComplex%3E" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Div.html" title="trait core::ops::arith::Div">Div</a> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Output-17" class="associatedtype trait-impl"><a class="src rightside" href="../../src/pyo3/types/complex.rs.html#108">Source</a><a href="#associatedtype.Output-17" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Div.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>></h4></section></summary><div class='docblock'>The resulting type after applying the <code>/</code> operator.</div></details><details class="toggle method-toggle" open><summary><section id="method.div-3" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/complex.rs.html#108">Source</a><a href="#method.div-3" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Div.html#tymethod.div" class="fn">div</a>(self, other: <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>>) -> <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>></h4></section></summary><div class='docblock'>Performs the <code>/</code> operation. <a href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Div.html#tymethod.div">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Drop-for-Bound%3C'_,+T%3E" class="impl"><a class="src rightside" href="../../src/pyo3/instance.rs.html#535-540">Source</a><a href="#impl-Drop-for-Bound%3C'_,+T%3E" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/drop/trait.Drop.html" title="trait core::ops::drop::Drop">Drop</a> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, T></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.drop" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/instance.rs.html#537-539">Source</a><a href="#method.drop" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/ops/drop/trait.Drop.html#tymethod.drop" class="fn">drop</a>(&mut self)</h4></section></summary><div class='docblock'>Executes the destructor for this type. <a href="https://doc.rust-lang.org/1.85.1/core/ops/drop/trait.Drop.html#tymethod.drop">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-From%3C%26Bound%3C'py,+T%3E%3E-for-Borrowed%3C'a,+'py,+T%3E" class="impl"><a class="src rightside" href="../../src/pyo3/instance.rs.html#797-803">Source</a><a href="#impl-From%3C%26Bound%3C'py,+T%3E%3E-for-Borrowed%3C'a,+'py,+T%3E" class="anchor">§</a><h3 class="code-header">impl<'a, 'py, T> <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, T>> for <a class="struct" href="../struct.Borrowed.html" title="struct pyo3::Borrowed">Borrowed</a><'a, 'py, T></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/instance.rs.html#800-802">Source</a><a href="#method.from-1" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(instance: &'a <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, T>) -> Self</h4></section></summary><div class="docblock"><p>Create borrow on a Bound</p>
|
||
</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-From%3CBound%3C'_,+PyByteArray%3E%3E-for-PyBackedBytes" class="impl"><a class="src rightside" href="../../src/pyo3/pybacked.rs.html#219-228">Source</a><a href="#impl-From%3CBound%3C'_,+PyByteArray%3E%3E-for-PyBackedBytes" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyByteArray.html" title="struct pyo3::types::PyByteArray">PyByteArray</a>>> for <a class="struct" href="../pybacked/struct.PyBackedBytes.html" title="struct pyo3::pybacked::PyBackedBytes">PyBackedBytes</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from-5" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/pybacked.rs.html#220-227">Source</a><a href="#method.from-5" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(py_bytearray: <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyByteArray.html" title="struct pyo3::types::PyByteArray">PyByteArray</a>>) -> Self</h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-From%3CBound%3C'_,+PyBytes%3E%3E-for-PyBackedBytes" class="impl"><a class="src rightside" href="../../src/pyo3/pybacked.rs.html#208-217">Source</a><a href="#impl-From%3CBound%3C'_,+PyBytes%3E%3E-for-PyBackedBytes" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyBytes.html" title="struct pyo3::types::PyBytes">PyBytes</a>>> for <a class="struct" href="../pybacked/struct.PyBackedBytes.html" title="struct pyo3::pybacked::PyBackedBytes">PyBackedBytes</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from-4" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/pybacked.rs.html#209-216">Source</a><a href="#method.from-4" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(py_bytes: <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyBytes.html" title="struct pyo3::types::PyBytes">PyBytes</a>>) -> Self</h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-From%3CBound%3C'_,+T%3E%3E-for-Py%3CPyAny%3E" class="impl"><a class="src rightside" href="../../src/pyo3/instance.rs.html#1817-1825">Source</a><a href="#impl-From%3CBound%3C'_,+T%3E%3E-for-Py%3CPyAny%3E" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, T>> for <a class="type" href="../type.PyObject.html" title="type pyo3::PyObject">PyObject</a><div class="where">where
|
||
T: <a class="trait" href="../types/trait.DerefToPyAny.html" title="trait pyo3::types::DerefToPyAny">DerefToPyAny</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from-2" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/instance.rs.html#1822-1824">Source</a><a href="#method.from-2" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(other: <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, T>) -> Self</h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-From%3CBound%3C'_,+T%3E%3E-for-Py%3CT%3E" class="impl"><a class="src rightside" href="../../src/pyo3/instance.rs.html#1827-1832">Source</a><a href="#impl-From%3CBound%3C'_,+T%3E%3E-for-Py%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, T>> for <a class="struct" href="../struct.Py.html" title="struct pyo3::Py">Py</a><T></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from-3" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/instance.rs.html#1829-1831">Source</a><a href="#method.from-3" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(other: <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, T>) -> Self</h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-From%3CBound%3C'py,+T%3E%3E-for-PyClassInitializer%3CT%3E" class="impl"><a class="src rightside" href="../../src/pyo3/pyclass_init.rs.html#253-258">Source</a><a href="#impl-From%3CBound%3C'py,+T%3E%3E-for-PyClassInitializer%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<'py, 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/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, T>> for <a class="struct" href="../pyclass_init/struct.PyClassInitializer.html" title="struct pyo3::pyclass_init::PyClassInitializer">PyClassInitializer</a><T></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from-6" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/pyclass_init.rs.html#255-257">Source</a><a href="#method.from-6" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(value: <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, T>) -> <a class="struct" href="../pyclass_init/struct.PyClassInitializer.html" title="struct pyo3::pyclass_init::PyClassInitializer">PyClassInitializer</a><T></h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-From%3CBound%3C'py,+T%3E%3E-for-PyErr" class="impl"><a class="src rightside" href="../../src/pyo3/err/mod.rs.html#887-895">Source</a><a href="#impl-From%3CBound%3C'py,+T%3E%3E-for-PyErr" class="anchor">§</a><h3 class="code-header">impl<'py, T> <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, T>> for <a class="struct" href="../struct.PyErr.html" title="struct pyo3::PyErr">PyErr</a><div class="where">where
|
||
T: <a class="trait" href="../trait.ToPyErr.html" title="trait pyo3::ToPyErr">ToPyErr</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/err/mod.rs.html#892-894">Source</a><a href="#method.from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(err: <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, T>) -> <a class="struct" href="../struct.PyErr.html" title="struct pyo3::PyErr">PyErr</a></h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><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="../conversion/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></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.extract_bound" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/instance.rs.html#1899-1901">Source</a><a href="#method.extract_bound" class="anchor">§</a><h4 class="code-header">fn <a href="../conversion/trait.FromPyObject.html#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 source <code>PyObject</code>.</p>
|
||
</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Index%3CI%3E-for-Bound%3C'_,+PyBytes%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/bytes.rs.html#201-207">Source</a><a href="#impl-Index%3CI%3E-for-Bound%3C'_,+PyBytes%3E" class="anchor">§</a><h3 class="code-header">impl<I: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/slice/index/trait.SliceIndex.html" title="trait core::slice::index::SliceIndex">SliceIndex</a><[<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.u8.html">u8</a>]>> <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/index/trait.Index.html" title="trait core::ops::index::Index">Index</a><I> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyBytes.html" title="struct pyo3::types::PyBytes">PyBytes</a>></h3><div class="docblock"><p>This is the same way <a href="https://doc.rust-lang.org/1.85.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a> is indexed.</p>
|
||
</div></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Output-2" class="associatedtype trait-impl"><a class="src rightside" href="../../src/pyo3/types/bytes.rs.html#202">Source</a><a href="#associatedtype.Output-2" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.1/core/ops/index/trait.Index.html#associatedtype.Output" class="associatedtype">Output</a> = <I as <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/slice/index/trait.SliceIndex.html" title="trait core::slice::index::SliceIndex">SliceIndex</a><[<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.u8.html">u8</a>]>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/slice/index/trait.SliceIndex.html#associatedtype.Output" title="type core::slice::index::SliceIndex::Output">Output</a></h4></section></summary><div class='docblock'>The returned type after indexing.</div></details><details class="toggle method-toggle" open><summary><section id="method.index" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/bytes.rs.html#204-206">Source</a><a href="#method.index" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/ops/index/trait.Index.html#tymethod.index" class="fn">index</a>(&self, index: I) -> &Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/ops/index/trait.Index.html#associatedtype.Output" title="type core::ops::index::Index::Output">Output</a></h4></section></summary><div class='docblock'>Performs the indexing (<code>container[index]</code>) operation. <a href="https://doc.rust-lang.org/1.85.1/core/ops/index/trait.Index.html#tymethod.index">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-IntoIterator-for-%26Bound%3C'py,+PyDict%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/dict.rs.html#698-705">Source</a><a href="#impl-IntoIterator-for-%26Bound%3C'py,+PyDict%3E" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a> for &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyDict.html" title="struct pyo3::types::PyDict">PyDict</a>></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Item-1" class="associatedtype trait-impl"><a class="src rightside" href="../../src/pyo3/types/dict.rs.html#699">Source</a><a href="#associatedtype.Item-1" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" class="associatedtype">Item</a> = (<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="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>>)</h4></section></summary><div class='docblock'>The type of the elements being iterated over.</div></details><details class="toggle" open><summary><section id="associatedtype.IntoIter-1" class="associatedtype trait-impl"><a class="src rightside" href="../../src/pyo3/types/dict.rs.html#700">Source</a><a href="#associatedtype.IntoIter-1" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter" class="associatedtype">IntoIter</a> = <a class="struct" href="../types/iter/struct.BoundDictIterator.html" title="struct pyo3::types::iter::BoundDictIterator">BoundDictIterator</a><'py></h4></section></summary><div class='docblock'>Which kind of iterator are we turning this into?</div></details><details class="toggle method-toggle" open><summary><section id="method.into_iter-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/dict.rs.html#702-704">Source</a><a href="#method.into_iter-1" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter" class="fn">into_iter</a>(self) -> Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter" title="type core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a></h4></section></summary><div class='docblock'>Creates an iterator from a value. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-IntoIterator-for-%26Bound%3C'py,+PyFrozenSet%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/frozenset.rs.html#202-210">Source</a><a href="#impl-IntoIterator-for-%26Bound%3C'py,+PyFrozenSet%3E" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a> for &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyFrozenSet.html" title="struct pyo3::types::PyFrozenSet">PyFrozenSet</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into_iter-3" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/frozenset.rs.html#207-209">Source</a><a href="#method.into_iter-3" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter" class="fn">into_iter</a>(self) -> Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter" title="type core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a></h4></section></summary><div class="docblock"><p>Returns an iterator of values in this set.</p>
|
||
</div></details><details class="toggle" open><summary><section id="associatedtype.Item-3" class="associatedtype trait-impl"><a class="src rightside" href="../../src/pyo3/types/frozenset.rs.html#203">Source</a><a href="#associatedtype.Item-3" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" class="associatedtype">Item</a> = <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>></h4></section></summary><div class='docblock'>The type of the elements being iterated over.</div></details><details class="toggle" open><summary><section id="associatedtype.IntoIter-3" class="associatedtype trait-impl"><a class="src rightside" href="../../src/pyo3/types/frozenset.rs.html#204">Source</a><a href="#associatedtype.IntoIter-3" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter" class="associatedtype">IntoIter</a> = <a class="struct" href="../types/iter/struct.BoundFrozenSetIterator.html" title="struct pyo3::types::iter::BoundFrozenSetIterator">BoundFrozenSetIterator</a><'py></h4></section></summary><div class='docblock'>Which kind of iterator are we turning this into?</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-IntoIterator-for-%26Bound%3C'py,+PyIterator%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/iterator.rs.html#118-125">Source</a><a href="#impl-IntoIterator-for-%26Bound%3C'py,+PyIterator%3E" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a> for &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyIterator.html" title="struct pyo3::types::PyIterator">PyIterator</a>></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Item-5" class="associatedtype trait-impl"><a class="src rightside" href="../../src/pyo3/types/iterator.rs.html#119">Source</a><a href="#associatedtype.Item-5" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" class="associatedtype">Item</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><<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="struct" href="../struct.PyErr.html" title="struct pyo3::PyErr">PyErr</a>></h4></section></summary><div class='docblock'>The type of the elements being iterated over.</div></details><details class="toggle" open><summary><section id="associatedtype.IntoIter-4" class="associatedtype trait-impl"><a class="src rightside" href="../../src/pyo3/types/iterator.rs.html#120">Source</a><a href="#associatedtype.IntoIter-4" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter" class="associatedtype">IntoIter</a> = <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyIterator.html" title="struct pyo3::types::PyIterator">PyIterator</a>></h4></section></summary><div class='docblock'>Which kind of iterator are we turning this into?</div></details><details class="toggle method-toggle" open><summary><section id="method.into_iter-4" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/iterator.rs.html#122-124">Source</a><a href="#method.into_iter-4" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter" class="fn">into_iter</a>(self) -> Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter" title="type core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a></h4></section></summary><div class='docblock'>Creates an iterator from a value. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-IntoIterator-for-%26Bound%3C'py,+PyList%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/list.rs.html#966-973">Source</a><a href="#impl-IntoIterator-for-%26Bound%3C'py,+PyList%3E" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a> for &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyList.html" title="struct pyo3::types::PyList">PyList</a>></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Item-7" class="associatedtype trait-impl"><a class="src rightside" href="../../src/pyo3/types/list.rs.html#967">Source</a><a href="#associatedtype.Item-7" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" class="associatedtype">Item</a> = <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>></h4></section></summary><div class='docblock'>The type of the elements being iterated over.</div></details><details class="toggle" open><summary><section id="associatedtype.IntoIter-6" class="associatedtype trait-impl"><a class="src rightside" href="../../src/pyo3/types/list.rs.html#968">Source</a><a href="#associatedtype.IntoIter-6" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter" class="associatedtype">IntoIter</a> = <a class="struct" href="../types/iter/struct.BoundListIterator.html" title="struct pyo3::types::iter::BoundListIterator">BoundListIterator</a><'py></h4></section></summary><div class='docblock'>Which kind of iterator are we turning this into?</div></details><details class="toggle method-toggle" open><summary><section id="method.into_iter-6" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/list.rs.html#970-972">Source</a><a href="#method.into_iter-6" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter" class="fn">into_iter</a>(self) -> Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter" title="type core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a></h4></section></summary><div class='docblock'>Creates an iterator from a value. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-IntoIterator-for-%26Bound%3C'py,+PySet%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/set.rs.html#227-239">Source</a><a href="#impl-IntoIterator-for-%26Bound%3C'py,+PySet%3E" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a> for &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PySet.html" title="struct pyo3::types::PySet">PySet</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into_iter-8" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/set.rs.html#236-238">Source</a><a href="#method.into_iter-8" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter" class="fn">into_iter</a>(self) -> Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter" title="type core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a></h4></section></summary><div class="docblock"><p>Returns an iterator of values in this set.</p>
|
||
<h5 id="panics-3"><a class="doc-anchor" href="#panics-3">§</a>Panics</h5>
|
||
<p>If PyO3 detects that the set is mutated during iteration, it will panic.</p>
|
||
</div></details><details class="toggle" open><summary><section id="associatedtype.Item-9" class="associatedtype trait-impl"><a class="src rightside" href="../../src/pyo3/types/set.rs.html#228">Source</a><a href="#associatedtype.Item-9" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" class="associatedtype">Item</a> = <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>></h4></section></summary><div class='docblock'>The type of the elements being iterated over.</div></details><details class="toggle" open><summary><section id="associatedtype.IntoIter-8" class="associatedtype trait-impl"><a class="src rightside" href="../../src/pyo3/types/set.rs.html#229">Source</a><a href="#associatedtype.IntoIter-8" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter" class="associatedtype">IntoIter</a> = <a class="struct" href="../types/iter/struct.BoundSetIterator.html" title="struct pyo3::types::iter::BoundSetIterator">BoundSetIterator</a><'py></h4></section></summary><div class='docblock'>Which kind of iterator are we turning this into?</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-IntoIterator-for-%26Bound%3C'py,+PyTuple%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/tuple.rs.html#512-519">Source</a><a href="#impl-IntoIterator-for-%26Bound%3C'py,+PyTuple%3E" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a> for &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyTuple.html" title="struct pyo3::types::PyTuple">PyTuple</a>></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Item-11" class="associatedtype trait-impl"><a class="src rightside" href="../../src/pyo3/types/tuple.rs.html#513">Source</a><a href="#associatedtype.Item-11" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" class="associatedtype">Item</a> = <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>></h4></section></summary><div class='docblock'>The type of the elements being iterated over.</div></details><details class="toggle" open><summary><section id="associatedtype.IntoIter-10" class="associatedtype trait-impl"><a class="src rightside" href="../../src/pyo3/types/tuple.rs.html#514">Source</a><a href="#associatedtype.IntoIter-10" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter" class="associatedtype">IntoIter</a> = <a class="struct" href="../types/iter/struct.BoundTupleIterator.html" title="struct pyo3::types::iter::BoundTupleIterator">BoundTupleIterator</a><'py></h4></section></summary><div class='docblock'>Which kind of iterator are we turning this into?</div></details><details class="toggle method-toggle" open><summary><section id="method.into_iter-10" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/tuple.rs.html#516-518">Source</a><a href="#method.into_iter-10" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter" class="fn">into_iter</a>(self) -> Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter" title="type core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a></h4></section></summary><div class='docblock'>Creates an iterator from a value. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-IntoIterator-for-Bound%3C'py,+PyDict%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/dict.rs.html#689-696">Source</a><a href="#impl-IntoIterator-for-Bound%3C'py,+PyDict%3E" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyDict.html" title="struct pyo3::types::PyDict">PyDict</a>></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Item" class="associatedtype trait-impl"><a class="src rightside" href="../../src/pyo3/types/dict.rs.html#690">Source</a><a href="#associatedtype.Item" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" class="associatedtype">Item</a> = (<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="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>>)</h4></section></summary><div class='docblock'>The type of the elements being iterated over.</div></details><details class="toggle" open><summary><section id="associatedtype.IntoIter" class="associatedtype trait-impl"><a class="src rightside" href="../../src/pyo3/types/dict.rs.html#691">Source</a><a href="#associatedtype.IntoIter" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter" class="associatedtype">IntoIter</a> = <a class="struct" href="../types/iter/struct.BoundDictIterator.html" title="struct pyo3::types::iter::BoundDictIterator">BoundDictIterator</a><'py></h4></section></summary><div class='docblock'>Which kind of iterator are we turning this into?</div></details><details class="toggle method-toggle" open><summary><section id="method.into_iter" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/dict.rs.html#693-695">Source</a><a href="#method.into_iter" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter" class="fn">into_iter</a>(self) -> Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter" title="type core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a></h4></section></summary><div class='docblock'>Creates an iterator from a value. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-IntoIterator-for-Bound%3C'py,+PyFrozenSet%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/frozenset.rs.html#192-200">Source</a><a href="#impl-IntoIterator-for-Bound%3C'py,+PyFrozenSet%3E" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyFrozenSet.html" title="struct pyo3::types::PyFrozenSet">PyFrozenSet</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into_iter-2" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/frozenset.rs.html#197-199">Source</a><a href="#method.into_iter-2" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter" class="fn">into_iter</a>(self) -> Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter" title="type core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a></h4></section></summary><div class="docblock"><p>Returns an iterator of values in this set.</p>
|
||
</div></details><details class="toggle" open><summary><section id="associatedtype.Item-2" class="associatedtype trait-impl"><a class="src rightside" href="../../src/pyo3/types/frozenset.rs.html#193">Source</a><a href="#associatedtype.Item-2" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" class="associatedtype">Item</a> = <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>></h4></section></summary><div class='docblock'>The type of the elements being iterated over.</div></details><details class="toggle" open><summary><section id="associatedtype.IntoIter-2" class="associatedtype trait-impl"><a class="src rightside" href="../../src/pyo3/types/frozenset.rs.html#194">Source</a><a href="#associatedtype.IntoIter-2" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter" class="associatedtype">IntoIter</a> = <a class="struct" href="../types/iter/struct.BoundFrozenSetIterator.html" title="struct pyo3::types::iter::BoundFrozenSetIterator">BoundFrozenSetIterator</a><'py></h4></section></summary><div class='docblock'>Which kind of iterator are we turning this into?</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-IntoIterator-for-Bound%3C'py,+PyList%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/list.rs.html#957-964">Source</a><a href="#impl-IntoIterator-for-Bound%3C'py,+PyList%3E" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyList.html" title="struct pyo3::types::PyList">PyList</a>></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Item-6" class="associatedtype trait-impl"><a class="src rightside" href="../../src/pyo3/types/list.rs.html#958">Source</a><a href="#associatedtype.Item-6" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" class="associatedtype">Item</a> = <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>></h4></section></summary><div class='docblock'>The type of the elements being iterated over.</div></details><details class="toggle" open><summary><section id="associatedtype.IntoIter-5" class="associatedtype trait-impl"><a class="src rightside" href="../../src/pyo3/types/list.rs.html#959">Source</a><a href="#associatedtype.IntoIter-5" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter" class="associatedtype">IntoIter</a> = <a class="struct" href="../types/iter/struct.BoundListIterator.html" title="struct pyo3::types::iter::BoundListIterator">BoundListIterator</a><'py></h4></section></summary><div class='docblock'>Which kind of iterator are we turning this into?</div></details><details class="toggle method-toggle" open><summary><section id="method.into_iter-5" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/list.rs.html#961-963">Source</a><a href="#method.into_iter-5" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter" class="fn">into_iter</a>(self) -> Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter" title="type core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a></h4></section></summary><div class='docblock'>Creates an iterator from a value. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-IntoIterator-for-Bound%3C'py,+PySet%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/set.rs.html#213-225">Source</a><a href="#impl-IntoIterator-for-Bound%3C'py,+PySet%3E" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PySet.html" title="struct pyo3::types::PySet">PySet</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into_iter-7" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/set.rs.html#222-224">Source</a><a href="#method.into_iter-7" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter" class="fn">into_iter</a>(self) -> Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter" title="type core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a></h4></section></summary><div class="docblock"><p>Returns an iterator of values in this set.</p>
|
||
<h5 id="panics-2"><a class="doc-anchor" href="#panics-2">§</a>Panics</h5>
|
||
<p>If PyO3 detects that the set is mutated during iteration, it will panic.</p>
|
||
</div></details><details class="toggle" open><summary><section id="associatedtype.Item-8" class="associatedtype trait-impl"><a class="src rightside" href="../../src/pyo3/types/set.rs.html#214">Source</a><a href="#associatedtype.Item-8" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" class="associatedtype">Item</a> = <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>></h4></section></summary><div class='docblock'>The type of the elements being iterated over.</div></details><details class="toggle" open><summary><section id="associatedtype.IntoIter-7" class="associatedtype trait-impl"><a class="src rightside" href="../../src/pyo3/types/set.rs.html#215">Source</a><a href="#associatedtype.IntoIter-7" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter" class="associatedtype">IntoIter</a> = <a class="struct" href="../types/iter/struct.BoundSetIterator.html" title="struct pyo3::types::iter::BoundSetIterator">BoundSetIterator</a><'py></h4></section></summary><div class='docblock'>Which kind of iterator are we turning this into?</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-IntoIterator-for-Bound%3C'py,+PyTuple%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/tuple.rs.html#503-510">Source</a><a href="#impl-IntoIterator-for-Bound%3C'py,+PyTuple%3E" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyTuple.html" title="struct pyo3::types::PyTuple">PyTuple</a>></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Item-10" class="associatedtype trait-impl"><a class="src rightside" href="../../src/pyo3/types/tuple.rs.html#504">Source</a><a href="#associatedtype.Item-10" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" class="associatedtype">Item</a> = <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>></h4></section></summary><div class='docblock'>The type of the elements being iterated over.</div></details><details class="toggle" open><summary><section id="associatedtype.IntoIter-9" class="associatedtype trait-impl"><a class="src rightside" href="../../src/pyo3/types/tuple.rs.html#505">Source</a><a href="#associatedtype.IntoIter-9" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter" class="associatedtype">IntoIter</a> = <a class="struct" href="../types/iter/struct.BoundTupleIterator.html" title="struct pyo3::types::iter::BoundTupleIterator">BoundTupleIterator</a><'py></h4></section></summary><div class='docblock'>Which kind of iterator are we turning this into?</div></details><details class="toggle method-toggle" open><summary><section id="method.into_iter-9" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/tuple.rs.html#507-509">Source</a><a href="#method.into_iter-9" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter" class="fn">into_iter</a>(self) -> Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter" title="type core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a></h4></section></summary><div class='docblock'>Creates an iterator from a value. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-IntoPy%3CPy%3CPyAny%3E%3E-for-%26Bound%3C'_,+T%3E" class="impl"><a class="src rightside" href="../../src/pyo3/instance.rs.html#1791-1797">Source</a><a href="#impl-IntoPy%3CPy%3CPyAny%3E%3E-for-%26Bound%3C'_,+T%3E" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="../conversion/trait.IntoPy.html" title="trait pyo3::conversion::IntoPy">IntoPy</a><<a class="struct" href="../struct.Py.html" title="struct pyo3::Py">Py</a><<a class="struct" href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny">PyAny</a>>> for &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, T></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into_py-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/instance.rs.html#1794-1796">Source</a><a href="#method.into_py-1" class="anchor">§</a><h4 class="code-header">fn <a href="../conversion/trait.IntoPy.html#tymethod.into_py" class="fn">into_py</a>(self, py: <a class="struct" href="../marker/struct.Python.html" title="struct pyo3::marker::Python">Python</a><'_>) -> <a class="type" href="../type.PyObject.html" title="type pyo3::PyObject">PyObject</a></h4></section><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated since 0.23.0: <code>IntoPy</code> is going to be replaced by <code>IntoPyObject</code>. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.</span></div></span></summary><div class="docblock"><p>Converts <code>&Bound</code> instance -> PyObject, increasing the reference count.</p>
|
||
</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-IntoPy%3CPy%3CPyAny%3E%3E-for-Bound%3C'_,+T%3E" class="impl"><a class="src rightside" href="../../src/pyo3/instance.rs.html#1782-1788">Source</a><a href="#impl-IntoPy%3CPy%3CPyAny%3E%3E-for-Bound%3C'_,+T%3E" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="../conversion/trait.IntoPy.html" title="trait pyo3::conversion::IntoPy">IntoPy</a><<a class="struct" href="../struct.Py.html" title="struct pyo3::Py">Py</a><<a class="struct" href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny">PyAny</a>>> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, T></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into_py" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/instance.rs.html#1785-1787">Source</a><a href="#method.into_py" class="anchor">§</a><h4 class="code-header">fn <a href="../conversion/trait.IntoPy.html#tymethod.into_py" class="fn">into_py</a>(self, _py: <a class="struct" href="../marker/struct.Python.html" title="struct pyo3::marker::Python">Python</a><'_>) -> <a class="type" href="../type.PyObject.html" title="type pyo3::PyObject">PyObject</a></h4></section><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated since 0.23.0: <code>IntoPy</code> is going to be replaced by <code>IntoPyObject</code>. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.</span></div></span></summary><div class="docblock"><p>Converts a <code>Bound</code> instance to <code>PyObject</code>.</p>
|
||
</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-IntoPy%3CPy%3CPyString%3E%3E-for-%26Bound%3C'_,+PyString%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/string.rs.html#462-466">Source</a><a href="#impl-IntoPy%3CPy%3CPyString%3E%3E-for-%26Bound%3C'_,+PyString%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../conversion/trait.IntoPy.html" title="trait pyo3::conversion::IntoPy">IntoPy</a><<a class="struct" href="../struct.Py.html" title="struct pyo3::Py">Py</a><<a class="struct" href="../types/struct.PyString.html" title="struct pyo3::types::PyString">PyString</a>>> for &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyString.html" title="struct pyo3::types::PyString">PyString</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into_py-3" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/string.rs.html#463-465">Source</a><a href="#method.into_py-3" class="anchor">§</a><h4 class="code-header">fn <a href="../conversion/trait.IntoPy.html#tymethod.into_py" class="fn">into_py</a>(self, _py: <a class="struct" href="../marker/struct.Python.html" title="struct pyo3::marker::Python">Python</a><'_>) -> <a class="struct" href="../struct.Py.html" title="struct pyo3::Py">Py</a><<a class="struct" href="../types/struct.PyString.html" title="struct pyo3::types::PyString">PyString</a>></h4></section></summary><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated since 0.23.0: <code>IntoPy</code> is going to be replaced by <code>IntoPyObject</code>. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.</span></div></span><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-IntoPy%3CPy%3CPyString%3E%3E-for-Bound%3C'_,+PyString%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/string.rs.html#455-459">Source</a><a href="#impl-IntoPy%3CPy%3CPyString%3E%3E-for-Bound%3C'_,+PyString%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../conversion/trait.IntoPy.html" title="trait pyo3::conversion::IntoPy">IntoPy</a><<a class="struct" href="../struct.Py.html" title="struct pyo3::Py">Py</a><<a class="struct" href="../types/struct.PyString.html" title="struct pyo3::types::PyString">PyString</a>>> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyString.html" title="struct pyo3::types::PyString">PyString</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into_py-2" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/string.rs.html#456-458">Source</a><a href="#method.into_py-2" class="anchor">§</a><h4 class="code-header">fn <a href="../conversion/trait.IntoPy.html#tymethod.into_py" class="fn">into_py</a>(self, _py: <a class="struct" href="../marker/struct.Python.html" title="struct pyo3::marker::Python">Python</a><'_>) -> <a class="struct" href="../struct.Py.html" title="struct pyo3::Py">Py</a><<a class="struct" href="../types/struct.PyString.html" title="struct pyo3::types::PyString">PyString</a>></h4></section></summary><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated since 0.23.0: <code>IntoPy</code> is going to be replaced by <code>IntoPyObject</code>. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.</span></div></span><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-IntoPy%3CPy%3CPyTuple%3E%3E-for-%26Bound%3C'_,+PyTuple%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/tuple.rs.html#616-620">Source</a><a href="#impl-IntoPy%3CPy%3CPyTuple%3E%3E-for-%26Bound%3C'_,+PyTuple%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../conversion/trait.IntoPy.html" title="trait pyo3::conversion::IntoPy">IntoPy</a><<a class="struct" href="../struct.Py.html" title="struct pyo3::Py">Py</a><<a class="struct" href="../types/struct.PyTuple.html" title="struct pyo3::types::PyTuple">PyTuple</a>>> for &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyTuple.html" title="struct pyo3::types::PyTuple">PyTuple</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into_py-5" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/tuple.rs.html#617-619">Source</a><a href="#method.into_py-5" class="anchor">§</a><h4 class="code-header">fn <a href="../conversion/trait.IntoPy.html#tymethod.into_py" class="fn">into_py</a>(self, _: <a class="struct" href="../marker/struct.Python.html" title="struct pyo3::marker::Python">Python</a><'_>) -> <a class="struct" href="../struct.Py.html" title="struct pyo3::Py">Py</a><<a class="struct" href="../types/struct.PyTuple.html" title="struct pyo3::types::PyTuple">PyTuple</a>></h4></section></summary><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated since 0.23.0: <code>IntoPy</code> is going to be replaced by <code>IntoPyObject</code>. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.</span></div></span><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-IntoPy%3CPy%3CPyTuple%3E%3E-for-Bound%3C'_,+PyTuple%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/tuple.rs.html#609-613">Source</a><a href="#impl-IntoPy%3CPy%3CPyTuple%3E%3E-for-Bound%3C'_,+PyTuple%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../conversion/trait.IntoPy.html" title="trait pyo3::conversion::IntoPy">IntoPy</a><<a class="struct" href="../struct.Py.html" title="struct pyo3::Py">Py</a><<a class="struct" href="../types/struct.PyTuple.html" title="struct pyo3::types::PyTuple">PyTuple</a>>> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyTuple.html" title="struct pyo3::types::PyTuple">PyTuple</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into_py-4" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/tuple.rs.html#610-612">Source</a><a href="#method.into_py-4" class="anchor">§</a><h4 class="code-header">fn <a href="../conversion/trait.IntoPy.html#tymethod.into_py" class="fn">into_py</a>(self, _: <a class="struct" href="../marker/struct.Python.html" title="struct pyo3::marker::Python">Python</a><'_>) -> <a class="struct" href="../struct.Py.html" title="struct pyo3::Py">Py</a><<a class="struct" href="../types/struct.PyTuple.html" title="struct pyo3::types::PyTuple">PyTuple</a>></h4></section></summary><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated since 0.23.0: <code>IntoPy</code> is going to be replaced by <code>IntoPyObject</code>. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.</span></div></span><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-IntoPyObject%3C'py%3E-for-%26Bound%3C'py,+T%3E" class="impl"><a class="src rightside" href="../../src/pyo3/conversion.rs.html#291-299">Source</a><a href="#impl-IntoPyObject%3C'py%3E-for-%26Bound%3C'py,+T%3E" class="anchor">§</a><h3 class="code-header">impl<'a, 'py, T> <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py> for &'a <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, T></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Target-1" class="associatedtype trait-impl"><a class="src rightside" href="../../src/pyo3/conversion.rs.html#292">Source</a><a href="#associatedtype.Target-1" class="anchor">§</a><h4 class="code-header">type <a href="../conversion/trait.IntoPyObject.html#associatedtype.Target" class="associatedtype">Target</a> = T</h4></section></summary><div class='docblock'>The Python output type</div></details><details class="toggle" open><summary><section id="associatedtype.Output-1" class="associatedtype trait-impl"><a class="src rightside" href="../../src/pyo3/conversion.rs.html#293">Source</a><a href="#associatedtype.Output-1" class="anchor">§</a><h4 class="code-header">type <a href="../conversion/trait.IntoPyObject.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="../struct.Borrowed.html" title="struct pyo3::Borrowed">Borrowed</a><'a, 'py, <&'a <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, T> as <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py>>::<a class="associatedtype" href="../conversion/trait.IntoPyObject.html#associatedtype.Target" title="type pyo3::conversion::IntoPyObject::Target">Target</a>></h4></section></summary><div class='docblock'>The smart pointer type to use. <a href="../conversion/trait.IntoPyObject.html#associatedtype.Output">Read more</a></div></details><details class="toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl"><a class="src rightside" href="../../src/pyo3/conversion.rs.html#294">Source</a><a href="#associatedtype.Error-1" class="anchor">§</a><h4 class="code-header">type <a href="../conversion/trait.IntoPyObject.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/1.85.1/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.into_pyobject-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/conversion.rs.html#296-298">Source</a><a href="#method.into_pyobject-1" class="anchor">§</a><h4 class="code-header">fn <a href="../conversion/trait.IntoPyObject.html#tymethod.into_pyobject" class="fn">into_pyobject</a>(self, _py: <a class="struct" href="../marker/struct.Python.html" title="struct pyo3::marker::Python">Python</a><'py>) -> <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="associatedtype" href="../conversion/trait.IntoPyObject.html#associatedtype.Output" title="type pyo3::conversion::IntoPyObject::Output">Output</a>, Self::<a class="associatedtype" href="../conversion/trait.IntoPyObject.html#associatedtype.Error" title="type pyo3::conversion::IntoPyObject::Error">Error</a>></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-IntoPyObject%3C'py%3E-for-Bound%3C'py,+T%3E" class="impl"><a class="src rightside" href="../../src/pyo3/conversion.rs.html#281-289">Source</a><a href="#impl-IntoPyObject%3C'py%3E-for-Bound%3C'py,+T%3E" class="anchor">§</a><h3 class="code-header">impl<'py, T> <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, T></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Target" class="associatedtype trait-impl"><a class="src rightside" href="../../src/pyo3/conversion.rs.html#282">Source</a><a href="#associatedtype.Target" class="anchor">§</a><h4 class="code-header">type <a href="../conversion/trait.IntoPyObject.html#associatedtype.Target" class="associatedtype">Target</a> = T</h4></section></summary><div class='docblock'>The Python output type</div></details><details class="toggle" open><summary><section id="associatedtype.Output" class="associatedtype trait-impl"><a class="src rightside" href="../../src/pyo3/conversion.rs.html#283">Source</a><a href="#associatedtype.Output" class="anchor">§</a><h4 class="code-header">type <a href="../conversion/trait.IntoPyObject.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, T> as <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py>>::<a class="associatedtype" href="../conversion/trait.IntoPyObject.html#associatedtype.Target" title="type pyo3::conversion::IntoPyObject::Target">Target</a>></h4></section></summary><div class='docblock'>The smart pointer type to use. <a href="../conversion/trait.IntoPyObject.html#associatedtype.Output">Read more</a></div></details><details class="toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl"><a class="src rightside" href="../../src/pyo3/conversion.rs.html#284">Source</a><a href="#associatedtype.Error" class="anchor">§</a><h4 class="code-header">type <a href="../conversion/trait.IntoPyObject.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/1.85.1/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.into_pyobject" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/conversion.rs.html#286-288">Source</a><a href="#method.into_pyobject" class="anchor">§</a><h4 class="code-header">fn <a href="../conversion/trait.IntoPyObject.html#tymethod.into_pyobject" class="fn">into_pyobject</a>(self, _py: <a class="struct" href="../marker/struct.Python.html" title="struct pyo3::marker::Python">Python</a><'py>) -> <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="associatedtype" href="../conversion/trait.IntoPyObject.html#associatedtype.Output" title="type pyo3::conversion::IntoPyObject::Output">Output</a>, Self::<a class="associatedtype" href="../conversion/trait.IntoPyObject.html#associatedtype.Error" title="type pyo3::conversion::IntoPyObject::Error">Error</a>></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Iterator-for-Bound%3C'py,+PyIterator%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/iterator.rs.html#84-103">Source</a><a href="#impl-Iterator-for-Bound%3C'py,+PyIterator%3E" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyIterator.html" title="struct pyo3::types::PyIterator">PyIterator</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.next" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/iterator.rs.html#94-96">Source</a><a href="#method.next" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#tymethod.next" class="fn">next</a>(&mut self) -> <a class="enum" href="https://doc.rust-lang.org/1.85.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>></h4></section></summary><div class="docblock"><p>Retrieves the next item from an iterator.</p>
|
||
<p>Returns <code>None</code> when the iterator is exhausted.
|
||
If an exception occurs, returns <code>Some(Err(..))</code>.
|
||
Further <code>next()</code> calls after an exception occurs are likely
|
||
to repeatedly result in the same exception.</p>
|
||
</div></details><details class="toggle" open><summary><section id="associatedtype.Item-4" class="associatedtype trait-impl"><a class="src rightside" href="../../src/pyo3/types/iterator.rs.html#85">Source</a><a href="#associatedtype.Item-4" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</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><<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="struct" href="../struct.PyErr.html" title="struct pyo3::PyErr">PyErr</a>></h4></section></summary><div class='docblock'>The type of the elements being iterated over.</div></details><details class="toggle method-toggle" open><summary><section id="method.size_hint" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/iterator.rs.html#99-102">Source</a><a href="#method.size_hint" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.size_hint" class="fn">size_hint</a>(&self) -> (<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.usize.html">usize</a>, <a class="enum" href="https://doc.rust-lang.org/1.85.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.usize.html">usize</a>>)</h4></section></summary><div class='docblock'>Returns the bounds on the remaining length of the iterator. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.size_hint">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.next_chunk" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#109-113">Source</a><a href="#method.next_chunk" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.next_chunk" class="fn">next_chunk</a><const N: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.usize.html">usize</a>>(
|
||
&mut self,
|
||
) -> <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="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>; <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.array.html">N</a>], <a class="struct" href="https://doc.rust-lang.org/1.85.1/core/array/iter/struct.IntoIter.html" title="struct core::array::iter::IntoIter">IntoIter</a><Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>, N>><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>iter_next_chunk</code>)</span></div></span><div class='docblock'>Advances the iterator and returns an array containing the next <code>N</code> values. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.next_chunk">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.count" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#221-223">Source</a></span><a href="#method.count" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.count" class="fn">count</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.usize.html">usize</a><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'>Consumes the iterator, counting the number of iterations and returning it. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.count">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.last" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#249-251">Source</a></span><a href="#method.last" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.last" class="fn">last</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/1.85.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'>Consumes the iterator, returning the last element. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.last">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.advance_by" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#296">Source</a><a href="#method.advance_by" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.advance_by" class="fn">advance_by</a>(&mut self, n: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.usize.html">usize</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><<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.85.1/core/num/nonzero/struct.NonZero.html" title="struct core::num::nonzero::NonZero">NonZero</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.usize.html">usize</a>>></h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>iter_advance_by</code>)</span></div></span><div class='docblock'>Advances the iterator by <code>n</code> elements. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.advance_by">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.nth" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#347">Source</a></span><a href="#method.nth" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.nth" class="fn">nth</a>(&mut self, n: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.usize.html">usize</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.85.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>></h4></section></summary><div class='docblock'>Returns the <code>n</code>th element of the iterator. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.nth">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.step_by" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.28.0">1.28.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#397-399">Source</a></span><a href="#method.step_by" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.step_by" class="fn">step_by</a>(self, step: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.usize.html">usize</a>) -> <a class="struct" href="https://doc.rust-lang.org/1.85.1/core/iter/adapters/step_by/struct.StepBy.html" title="struct core::iter::adapters::step_by::StepBy">StepBy</a><Self><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'>Creates an iterator starting at the same point, but stepping by
|
||
the given amount at each iteration. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.chain" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#468-471">Source</a></span><a href="#method.chain" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.chain" class="fn">chain</a><U>(self, other: U) -> <a class="struct" href="https://doc.rust-lang.org/1.85.1/core/iter/adapters/chain/struct.Chain.html" title="struct core::iter::adapters::chain::Chain">Chain</a><Self, <U as <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter" title="type core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
U: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>>,</div></h4></section></summary><div class='docblock'>Takes two iterators and creates a new iterator over both in sequence. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.chain">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.zip" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#586-589">Source</a></span><a href="#method.zip" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.zip" class="fn">zip</a><U>(self, other: U) -> <a class="struct" href="https://doc.rust-lang.org/1.85.1/core/iter/adapters/zip/struct.Zip.html" title="struct core::iter::adapters::zip::Zip">Zip</a><Self, <U as <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter" title="type core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
U: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div class='docblock'>‘Zips up’ two iterators into a single iterator of pairs. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.zip">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.intersperse" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#628-631">Source</a><a href="#method.intersperse" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.intersperse" class="fn">intersperse</a>(self, separator: Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>) -> <a class="struct" href="https://doc.rust-lang.org/1.85.1/core/iter/adapters/intersperse/struct.Intersperse.html" title="struct core::iter::adapters::intersperse::Intersperse">Intersperse</a><Self><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</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></h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>iter_intersperse</code>)</span></div></span><div class='docblock'>Creates a new iterator which places a copy of <code>separator</code> between adjacent
|
||
items of the original iterator. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.intersperse_with" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#686-689">Source</a><a href="#method.intersperse_with" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with" class="fn">intersperse_with</a><G>(self, separator: G) -> <a class="struct" href="https://doc.rust-lang.org/1.85.1/core/iter/adapters/intersperse/struct.IntersperseWith.html" title="struct core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a><Self, G><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
G: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>() -> Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>iter_intersperse</code>)</span></div></span><div class='docblock'>Creates a new iterator which places an item generated by <code>separator</code>
|
||
between adjacent items of the original iterator. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.map" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#745-748">Source</a></span><a href="#method.map" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.map" class="fn">map</a><B, F>(self, f: F) -> <a class="struct" href="https://doc.rust-lang.org/1.85.1/core/iter/adapters/map/struct.Map.html" title="struct core::iter::adapters::map::Map">Map</a><Self, F><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>) -> B,</div></h4></section></summary><div class='docblock'>Takes a closure and creates an iterator which calls that closure on each
|
||
element. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.map">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.for_each" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.21.0">1.21.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#790-793">Source</a></span><a href="#method.for_each" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.for_each" class="fn">for_each</a><F>(self, f: F)<div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>),</div></h4></section></summary><div class='docblock'>Calls a closure on each element of an iterator. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.for_each">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.filter" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#866-869">Source</a></span><a href="#method.filter" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.filter" class="fn">filter</a><P>(self, predicate: P) -> <a class="struct" href="https://doc.rust-lang.org/1.85.1/core/iter/adapters/filter/struct.Filter.html" title="struct core::iter::adapters::filter::Filter">Filter</a><Self, P><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
P: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a>,</div></h4></section></summary><div class='docblock'>Creates an iterator which uses a closure to determine if an element
|
||
should be yielded. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.filter_map" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#911-914">Source</a></span><a href="#method.filter_map" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.filter_map" class="fn">filter_map</a><B, F>(self, f: F) -> <a class="struct" href="https://doc.rust-lang.org/1.85.1/core/iter/adapters/filter_map/struct.FilterMap.html" title="struct core::iter::adapters::filter_map::FilterMap">FilterMap</a><Self, F><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.85.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><B>,</div></h4></section></summary><div class='docblock'>Creates an iterator that both filters and maps. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.filter_map">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.enumerate" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#958-960">Source</a></span><a href="#method.enumerate" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.enumerate" class="fn">enumerate</a>(self) -> <a class="struct" href="https://doc.rust-lang.org/1.85.1/core/iter/adapters/enumerate/struct.Enumerate.html" title="struct core::iter::adapters::enumerate::Enumerate">Enumerate</a><Self><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'>Creates an iterator which gives the current iteration count as well as
|
||
the next value. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.peekable" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#1029-1031">Source</a></span><a href="#method.peekable" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.peekable" class="fn">peekable</a>(self) -> <a class="struct" href="https://doc.rust-lang.org/1.85.1/core/iter/adapters/peekable/struct.Peekable.html" title="struct core::iter::adapters::peekable::Peekable">Peekable</a><Self><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'>Creates an iterator which can use the <a href="https://doc.rust-lang.org/1.85.1/core/iter/adapters/peekable/struct.Peekable.html#method.peek" title="method core::iter::adapters::peekable::Peekable::peek"><code>peek</code></a> and <a href="https://doc.rust-lang.org/1.85.1/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut" title="method core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a> methods
|
||
to look at the next element of the iterator without consuming it. See
|
||
their documentation for more information. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.skip_while" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#1094-1097">Source</a></span><a href="#method.skip_while" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.skip_while" class="fn">skip_while</a><P>(self, predicate: P) -> <a class="struct" href="https://doc.rust-lang.org/1.85.1/core/iter/adapters/skip_while/struct.SkipWhile.html" title="struct core::iter::adapters::skip_while::SkipWhile">SkipWhile</a><Self, P><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
P: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a>,</div></h4></section></summary><div class='docblock'>Creates an iterator that <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.skip" title="method core::iter::traits::iterator::Iterator::skip"><code>skip</code></a>s elements based on a predicate. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.skip_while">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.take_while" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#1175-1178">Source</a></span><a href="#method.take_while" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.take_while" class="fn">take_while</a><P>(self, predicate: P) -> <a class="struct" href="https://doc.rust-lang.org/1.85.1/core/iter/adapters/take_while/struct.TakeWhile.html" title="struct core::iter::adapters::take_while::TakeWhile">TakeWhile</a><Self, P><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
P: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a>,</div></h4></section></summary><div class='docblock'>Creates an iterator that yields elements based on a predicate. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.take_while">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.map_while" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.57.0">1.57.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#1263-1266">Source</a></span><a href="#method.map_while" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.map_while" class="fn">map_while</a><B, P>(self, predicate: P) -> <a class="struct" href="https://doc.rust-lang.org/1.85.1/core/iter/adapters/map_while/struct.MapWhile.html" title="struct core::iter::adapters::map_while::MapWhile">MapWhile</a><Self, P><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
P: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.85.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><B>,</div></h4></section></summary><div class='docblock'>Creates an iterator that both yields elements based on a predicate and maps. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.map_while">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.skip" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#1292-1294">Source</a></span><a href="#method.skip" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.skip" class="fn">skip</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.usize.html">usize</a>) -> <a class="struct" href="https://doc.rust-lang.org/1.85.1/core/iter/adapters/skip/struct.Skip.html" title="struct core::iter::adapters::skip::Skip">Skip</a><Self><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'>Creates an iterator that skips the first <code>n</code> elements. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.skip">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.take" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#1345-1347">Source</a></span><a href="#method.take" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.take" class="fn">take</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.usize.html">usize</a>) -> <a class="struct" href="https://doc.rust-lang.org/1.85.1/core/iter/adapters/take/struct.Take.html" title="struct core::iter::adapters::take::Take">Take</a><Self><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'>Creates an iterator that yields the first <code>n</code> elements, or fewer
|
||
if the underlying iterator ends sooner. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.take">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.scan" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#1392-1395">Source</a></span><a href="#method.scan" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.scan" class="fn">scan</a><St, B, F>(self, initial_state: St, f: F) -> <a class="struct" href="https://doc.rust-lang.org/1.85.1/core/iter/adapters/scan/struct.Scan.html" title="struct core::iter::adapters::scan::Scan">Scan</a><Self, St, F><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&mut St</a>, Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.85.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><B>,</div></h4></section></summary><div class='docblock'>An iterator adapter which, like <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.fold" title="method core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>, holds internal state, but
|
||
unlike <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.fold" title="method core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>, produces a new iterator. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.scan">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.flat_map" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#1430-1434">Source</a></span><a href="#method.flat_map" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.flat_map" class="fn">flat_map</a><U, F>(self, f: F) -> <a class="struct" href="https://doc.rust-lang.org/1.85.1/core/iter/adapters/flatten/struct.FlatMap.html" title="struct core::iter::adapters::flatten::FlatMap">FlatMap</a><Self, U, F><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
U: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>,
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>) -> U,</div></h4></section></summary><div class='docblock'>Creates an iterator that works like map, but flattens nested structure. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.flat_map">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.flatten" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.29.0">1.29.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#1514-1517">Source</a></span><a href="#method.flatten" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.flatten" class="fn">flatten</a>(self) -> <a class="struct" href="https://doc.rust-lang.org/1.85.1/core/iter/adapters/flatten/struct.Flatten.html" title="struct core::iter::adapters::flatten::Flatten">Flatten</a><Self><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div class='docblock'>Creates an iterator that flattens nested structure. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.flatten">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.map_windows" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#1670-1673">Source</a><a href="#method.map_windows" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.map_windows" class="fn">map_windows</a><F, R, const N: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.usize.html">usize</a>>(self, f: F) -> <a class="struct" href="https://doc.rust-lang.org/1.85.1/core/iter/adapters/map_windows/struct.MapWindows.html" title="struct core::iter::adapters::map_windows::MapWindows">MapWindows</a><Self, F, N><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&[Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>; <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.array.html">N</a>]) -> R,</div></h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>iter_map_windows</code>)</span></div></span><div class='docblock'>Calls the given function <code>f</code> for each contiguous window of size <code>N</code> over
|
||
<code>self</code> and returns an iterator over the outputs of <code>f</code>. Like <a href="https://doc.rust-lang.org/1.85.1/std/primitive.slice.html#method.windows" title="method slice::windows"><code>slice::windows()</code></a>,
|
||
the windows during mapping overlap as well. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.fuse" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#1736-1738">Source</a></span><a href="#method.fuse" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.fuse" class="fn">fuse</a>(self) -> <a class="struct" href="https://doc.rust-lang.org/1.85.1/core/iter/adapters/fuse/struct.Fuse.html" title="struct core::iter::adapters::fuse::Fuse">Fuse</a><Self><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'>Creates an iterator which ends after the first <a href="https://doc.rust-lang.org/1.85.1/core/option/enum.Option.html#variant.None" title="variant core::option::Option::None"><code>None</code></a>. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.fuse">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.inspect" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#1820-1823">Source</a></span><a href="#method.inspect" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.inspect" class="fn">inspect</a><F>(self, f: F) -> <a class="struct" href="https://doc.rust-lang.org/1.85.1/core/iter/adapters/inspect/struct.Inspect.html" title="struct core::iter::adapters::inspect::Inspect">Inspect</a><Self, F><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>),</div></h4></section></summary><div class='docblock'>Does something with each element of an iterator, passing the value on. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.inspect">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.by_ref" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#1848-1850">Source</a></span><a href="#method.by_ref" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.by_ref" class="fn">by_ref</a>(&mut self) -> &mut Self<div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'>Borrows an iterator, rather than consuming it. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.by_ref">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.collect" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#1967-1969">Source</a></span><a href="#method.collect" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.collect" class="fn">collect</a><B>(self) -> B<div class="where">where
|
||
B: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.FromIterator.html" title="trait core::iter::traits::collect::FromIterator">FromIterator</a><Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>>,
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'>Transforms an iterator into a collection. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.collect">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.try_collect" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#2045-2049">Source</a><a href="#method.try_collect" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.try_collect" class="fn">try_collect</a><B>(
|
||
&mut self,
|
||
) -> <<Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a> as <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/try_trait/trait.Try.html" title="trait core::ops::try_trait::Try">Try</a>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/ops/try_trait/trait.Try.html#associatedtype.Residual" title="type core::ops::try_trait::Try::Residual">Residual</a> as <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/try_trait/trait.Residual.html" title="trait core::ops::try_trait::Residual">Residual</a><B>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/ops/try_trait/trait.Residual.html#associatedtype.TryType" title="type core::ops::try_trait::Residual::TryType">TryType</a><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/try_trait/trait.Try.html" title="trait core::ops::try_trait::Try">Try</a>,
|
||
<Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a> as <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/try_trait/trait.Try.html" title="trait core::ops::try_trait::Try">Try</a>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/ops/try_trait/trait.Try.html#associatedtype.Residual" title="type core::ops::try_trait::Try::Residual">Residual</a>: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/try_trait/trait.Residual.html" title="trait core::ops::try_trait::Residual">Residual</a><B>,
|
||
B: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.FromIterator.html" title="trait core::iter::traits::collect::FromIterator">FromIterator</a><<Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a> as <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/try_trait/trait.Try.html" title="trait core::ops::try_trait::Try">Try</a>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/ops/try_trait/trait.Try.html#associatedtype.Output" title="type core::ops::try_trait::Try::Output">Output</a>>,</div></h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>iterator_try_collect</code>)</span></div></span><div class='docblock'>Fallibly transforms an iterator into a collection, short circuiting if
|
||
a failure is encountered. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.try_collect">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.collect_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#2117-2119">Source</a><a href="#method.collect_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.collect_into" class="fn">collect_into</a><E>(self, collection: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&mut E</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&mut E</a><div class="where">where
|
||
E: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.Extend.html" title="trait core::iter::traits::collect::Extend">Extend</a><Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>>,
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>iter_collect_into</code>)</span></div></span><div class='docblock'>Collects all the items from an iterator into a collection. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.collect_into">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.partition" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#2149-2153">Source</a></span><a href="#method.partition" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.partition" class="fn">partition</a><B, F>(self, f: F) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.tuple.html">(B, B)</a><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
B: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/default/trait.Default.html" title="trait core::default::Default">Default</a> + <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.Extend.html" title="trait core::iter::traits::collect::Extend">Extend</a><Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>>,
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a>,</div></h4></section></summary><div class='docblock'>Consumes an iterator, creating two collections from it. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.partition">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.is_partitioned" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#2268-2271">Source</a><a href="#method.is_partitioned" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned" class="fn">is_partitioned</a><P>(self, predicate: P) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
P: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a>,</div></h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>iter_is_partitioned</code>)</span></div></span><div class='docblock'>Checks if the elements of this iterator are partitioned according to the given predicate,
|
||
such that all those that return <code>true</code> precede all those that return <code>false</code>. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.try_fold" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.27.0">1.27.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#2362-2366">Source</a></span><a href="#method.try_fold" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.try_fold" class="fn">try_fold</a><B, F, R>(&mut self, init: B, f: F) -> R<div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(B, Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>) -> R,
|
||
R: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/try_trait/trait.Try.html" title="trait core::ops::try_trait::Try">Try</a><Output = B>,</div></h4></section></summary><div class='docblock'>An iterator method that applies a function as long as it returns
|
||
successfully, producing a single, final value. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.try_for_each" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.27.0">1.27.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#2420-2424">Source</a></span><a href="#method.try_for_each" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each" class="fn">try_for_each</a><F, R>(&mut self, f: F) -> R<div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>) -> R,
|
||
R: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/try_trait/trait.Try.html" title="trait core::ops::try_trait::Try">Try</a><Output = <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.unit.html">()</a>>,</div></h4></section></summary><div class='docblock'>An iterator method that applies a fallible function to each item in the
|
||
iterator, stopping at the first error and returning that error. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.fold" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#2539-2542">Source</a></span><a href="#method.fold" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.fold" class="fn">fold</a><B, F>(self, init: B, f: F) -> B<div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(B, Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>) -> B,</div></h4></section></summary><div class='docblock'>Folds every element into an accumulator by applying an operation,
|
||
returning the final result. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.reduce" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.51.0">1.51.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#2576-2579">Source</a></span><a href="#method.reduce" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.reduce" class="fn">reduce</a><F>(self, f: F) -> <a class="enum" href="https://doc.rust-lang.org/1.85.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>, Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>) -> Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div class='docblock'>Reduces the elements to a single one, by repeatedly applying a reducing
|
||
operation. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.try_reduce" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#2647-2653">Source</a><a href="#method.try_reduce" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce" class="fn">try_reduce</a><R>(
|
||
&mut self,
|
||
f: impl <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>, Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>) -> R,
|
||
) -> <<R as <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/try_trait/trait.Try.html" title="trait core::ops::try_trait::Try">Try</a>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/ops/try_trait/trait.Try.html#associatedtype.Residual" title="type core::ops::try_trait::Try::Residual">Residual</a> as <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/try_trait/trait.Residual.html" title="trait core::ops::try_trait::Residual">Residual</a><<a class="enum" href="https://doc.rust-lang.org/1.85.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<R as <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/try_trait/trait.Try.html" title="trait core::ops::try_trait::Try">Try</a>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/ops/try_trait/trait.Try.html#associatedtype.Output" title="type core::ops::try_trait::Try::Output">Output</a>>>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/ops/try_trait/trait.Residual.html#associatedtype.TryType" title="type core::ops::try_trait::Residual::TryType">TryType</a><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
R: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/try_trait/trait.Try.html" title="trait core::ops::try_trait::Try">Try</a><Output = Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>>,
|
||
<R as <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/try_trait/trait.Try.html" title="trait core::ops::try_trait::Try">Try</a>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/ops/try_trait/trait.Try.html#associatedtype.Residual" title="type core::ops::try_trait::Try::Residual">Residual</a>: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/try_trait/trait.Residual.html" title="trait core::ops::try_trait::Residual">Residual</a><<a class="enum" href="https://doc.rust-lang.org/1.85.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>>>,</div></h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>iterator_try_reduce</code>)</span></div></span><div class='docblock'>Reduces the elements to a single one by repeatedly applying a reducing operation. If the
|
||
closure returns a failure, the failure is propagated back to the caller immediately. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.all" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#2705-2708">Source</a></span><a href="#method.all" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.all" class="fn">all</a><F>(&mut self, f: F) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a>,</div></h4></section></summary><div class='docblock'>Tests if every element of the iterator matches a predicate. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.all">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.any" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#2758-2761">Source</a></span><a href="#method.any" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.any" class="fn">any</a><F>(&mut self, f: F) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a>,</div></h4></section></summary><div class='docblock'>Tests if any element of the iterator matches a predicate. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.any">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.find" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#2821-2824">Source</a></span><a href="#method.find" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.find" class="fn">find</a><P>(&mut self, predicate: P) -> <a class="enum" href="https://doc.rust-lang.org/1.85.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
P: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a>,</div></h4></section></summary><div class='docblock'>Searches for an element of an iterator that satisfies a predicate. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.find">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.find_map" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.30.0">1.30.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#2852-2855">Source</a></span><a href="#method.find_map" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.find_map" class="fn">find_map</a><B, F>(&mut self, f: F) -> <a class="enum" href="https://doc.rust-lang.org/1.85.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><B><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.85.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><B>,</div></h4></section></summary><div class='docblock'>Applies function to the elements of iterator and returns
|
||
the first non-none result. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.try_find" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#2910-2916">Source</a><a href="#method.try_find" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.try_find" class="fn">try_find</a><R>(
|
||
&mut self,
|
||
f: impl <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>) -> R,
|
||
) -> <<R as <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/try_trait/trait.Try.html" title="trait core::ops::try_trait::Try">Try</a>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/ops/try_trait/trait.Try.html#associatedtype.Residual" title="type core::ops::try_trait::Try::Residual">Residual</a> as <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/try_trait/trait.Residual.html" title="trait core::ops::try_trait::Residual">Residual</a><<a class="enum" href="https://doc.rust-lang.org/1.85.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>>>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/ops/try_trait/trait.Residual.html#associatedtype.TryType" title="type core::ops::try_trait::Residual::TryType">TryType</a><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
R: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/try_trait/trait.Try.html" title="trait core::ops::try_trait::Try">Try</a><Output = <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a>>,
|
||
<R as <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/try_trait/trait.Try.html" title="trait core::ops::try_trait::Try">Try</a>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/ops/try_trait/trait.Try.html#associatedtype.Residual" title="type core::ops::try_trait::Try::Residual">Residual</a>: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/try_trait/trait.Residual.html" title="trait core::ops::try_trait::Residual">Residual</a><<a class="enum" href="https://doc.rust-lang.org/1.85.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>>>,</div></h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>try_find</code>)</span></div></span><div class='docblock'>Applies function to the elements of iterator and returns
|
||
the first true result or the first error. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.try_find">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.position" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#2993-2996">Source</a></span><a href="#method.position" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.position" class="fn">position</a><P>(&mut self, predicate: P) -> <a class="enum" href="https://doc.rust-lang.org/1.85.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.usize.html">usize</a>><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
P: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a>,</div></h4></section></summary><div class='docblock'>Searches for an element in an iterator, returning its index. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.position">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.max" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#3107-3110">Source</a></span><a href="#method.max" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.max" class="fn">max</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/1.85.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>: <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></h4></section></summary><div class='docblock'>Returns the maximum element of an iterator. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.max">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.min" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#3143-3146">Source</a></span><a href="#method.min" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.min" class="fn">min</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/1.85.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>: <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></h4></section></summary><div class='docblock'>Returns the minimum element of an iterator. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.min">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.max_by_key" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.6.0">1.6.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#3165-3168">Source</a></span><a href="#method.max_by_key" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.max_by_key" class="fn">max_by_key</a><B, F>(self, f: F) -> <a class="enum" href="https://doc.rust-lang.org/1.85.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>><div class="where">where
|
||
B: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>,
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>) -> B,</div></h4></section></summary><div class='docblock'>Returns the element that gives the maximum value from the
|
||
specified function. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.max_by_key">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.max_by" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.15.0">1.15.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#3198-3201">Source</a></span><a href="#method.max_by" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.max_by" class="fn">max_by</a><F>(self, compare: F) -> <a class="enum" href="https://doc.rust-lang.org/1.85.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>, &Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.85.1/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a>,</div></h4></section></summary><div class='docblock'>Returns the element that gives the maximum value with respect to the
|
||
specified comparison function. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.max_by">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.min_by_key" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.6.0">1.6.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#3225-3228">Source</a></span><a href="#method.min_by_key" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.min_by_key" class="fn">min_by_key</a><B, F>(self, f: F) -> <a class="enum" href="https://doc.rust-lang.org/1.85.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>><div class="where">where
|
||
B: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>,
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>) -> B,</div></h4></section></summary><div class='docblock'>Returns the element that gives the minimum value from the
|
||
specified function. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.min_by_key">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.min_by" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.15.0">1.15.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#3258-3261">Source</a></span><a href="#method.min_by" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.min_by" class="fn">min_by</a><F>(self, compare: F) -> <a class="enum" href="https://doc.rust-lang.org/1.85.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>, &Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.85.1/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a>,</div></h4></section></summary><div class='docblock'>Returns the element that gives the minimum value with respect to the
|
||
specified comparison function. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.min_by">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.unzip" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#3331-3335">Source</a></span><a href="#method.unzip" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.unzip" class="fn">unzip</a><A, B, FromA, FromB>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.tuple.html">(FromA, FromB)</a><div class="where">where
|
||
FromA: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/default/trait.Default.html" title="trait core::default::Default">Default</a> + <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.Extend.html" title="trait core::iter::traits::collect::Extend">Extend</a><A>,
|
||
FromB: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/default/trait.Default.html" title="trait core::default::Default">Default</a> + <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.Extend.html" title="trait core::iter::traits::collect::Extend">Extend</a><B>,
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> + <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.tuple.html">(A, B)</a>>,</div></h4></section></summary><div class='docblock'>Converts an iterator of pairs into a pair of containers. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.unzip">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.copied" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.36.0">1.36.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#3362-3365">Source</a></span><a href="#method.copied" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.copied" class="fn">copied</a><'a, T>(self) -> <a class="struct" href="https://doc.rust-lang.org/1.85.1/core/iter/adapters/copied/struct.Copied.html" title="struct core::iter::adapters::copied::Copied">Copied</a><Self><div class="where">where
|
||
T: 'a + <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>,
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> + <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&'a T</a>>,</div></h4></section></summary><div class='docblock'>Creates an iterator which copies all of its elements. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.copied">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.cloned" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#3410-3413">Source</a></span><a href="#method.cloned" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.cloned" class="fn">cloned</a><'a, T>(self) -> <a class="struct" href="https://doc.rust-lang.org/1.85.1/core/iter/adapters/cloned/struct.Cloned.html" title="struct core::iter::adapters::cloned::Cloned">Cloned</a><Self><div class="where">where
|
||
T: '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>,
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> + <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&'a T</a>>,</div></h4></section></summary><div class='docblock'>Creates an iterator which <a href="https://doc.rust-lang.org/1.85.1/core/clone/trait.Clone.html#tymethod.clone" title="method core::clone::Clone::clone"><code>clone</code></a>s all of its elements. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.cloned">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.cycle" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#3442-3444">Source</a></span><a href="#method.cycle" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.cycle" class="fn">cycle</a>(self) -> <a class="struct" href="https://doc.rust-lang.org/1.85.1/core/iter/adapters/cycle/struct.Cycle.html" title="struct core::iter::adapters::cycle::Cycle">Cycle</a><Self><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</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></h4></section></summary><div class='docblock'>Repeats an iterator endlessly. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.cycle">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.array_chunks" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#3485-3487">Source</a><a href="#method.array_chunks" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.array_chunks" class="fn">array_chunks</a><const N: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.usize.html">usize</a>>(self) -> <a class="struct" href="https://doc.rust-lang.org/1.85.1/core/iter/adapters/array_chunks/struct.ArrayChunks.html" title="struct core::iter::adapters::array_chunks::ArrayChunks">ArrayChunks</a><Self, N><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>iter_array_chunks</code>)</span></div></span><div class='docblock'>Returns an iterator over <code>N</code> elements of the iterator at a time. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.array_chunks">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.sum" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.11.0">1.11.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#3516-3519">Source</a></span><a href="#method.sum" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.sum" class="fn">sum</a><S>(self) -> S<div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
S: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/accum/trait.Sum.html" title="trait core::iter::traits::accum::Sum">Sum</a><Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>>,</div></h4></section></summary><div class='docblock'>Sums the elements of an iterator. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.sum">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.product" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.11.0">1.11.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#3548-3551">Source</a></span><a href="#method.product" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.product" class="fn">product</a><P>(self) -> P<div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
P: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/accum/trait.Product.html" title="trait core::iter::traits::accum::Product">Product</a><Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>>,</div></h4></section></summary><div class='docblock'>Iterates over the entire iterator, multiplying all the elements <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.product">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.cmp" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.5.0">1.5.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#3569-3573">Source</a></span><a href="#method.cmp" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.cmp" class="fn">cmp</a><I>(self, other: I) -> <a class="enum" href="https://doc.rust-lang.org/1.85.1/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a><div class="where">where
|
||
I: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>>,
|
||
Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>,
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'><a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.Ord.html#lexicographical-comparison" title="trait core::cmp::Ord">Lexicographically</a> compares the elements of this <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator"><code>Iterator</code></a> with those
|
||
of another. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.cmp">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.cmp_by" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#3596-3600">Source</a><a href="#method.cmp_by" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.cmp_by" class="fn">cmp_by</a><I, F>(self, other: I, cmp: F) -> <a class="enum" href="https://doc.rust-lang.org/1.85.1/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
I: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>,
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>, <I as <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" title="type core::iter::traits::collect::IntoIterator::Item">Item</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.85.1/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a>,</div></h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>iter_order_by</code>)</span></div></span><div class='docblock'><a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.Ord.html#lexicographical-comparison" title="trait core::cmp::Ord">Lexicographically</a> compares the elements of this <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator"><code>Iterator</code></a> with those
|
||
of another with respect to the specified comparison function. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.cmp_by">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.partial_cmp" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.5.0">1.5.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#3652-3656">Source</a></span><a href="#method.partial_cmp" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.partial_cmp" class="fn">partial_cmp</a><I>(self, other: I) -> <a class="enum" href="https://doc.rust-lang.org/1.85.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="https://doc.rust-lang.org/1.85.1/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a>><div class="where">where
|
||
I: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>,
|
||
Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a><<I as <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" title="type core::iter::traits::collect::IntoIterator::Item">Item</a>>,
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'><a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.Ord.html#lexicographical-comparison" title="trait core::cmp::Ord">Lexicographically</a> compares the <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd"><code>PartialOrd</code></a> elements of
|
||
this <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator"><code>Iterator</code></a> with those of another. The comparison works like short-circuit
|
||
evaluation, returning a result without comparing the remaining elements.
|
||
As soon as an order can be determined, the evaluation stops and a result is returned. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.partial_cmp">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.partial_cmp_by" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#3688-3692">Source</a><a href="#method.partial_cmp_by" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.partial_cmp_by" class="fn">partial_cmp_by</a><I, F>(self, other: I, partial_cmp: F) -> <a class="enum" href="https://doc.rust-lang.org/1.85.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="https://doc.rust-lang.org/1.85.1/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a>><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
I: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>,
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>, <I as <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" title="type core::iter::traits::collect::IntoIterator::Item">Item</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.85.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="https://doc.rust-lang.org/1.85.1/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a>>,</div></h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>iter_order_by</code>)</span></div></span><div class='docblock'><a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.Ord.html#lexicographical-comparison" title="trait core::cmp::Ord">Lexicographically</a> compares the elements of this <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator"><code>Iterator</code></a> with those
|
||
of another with respect to the specified comparison function. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.partial_cmp_by">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.eq-25" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.5.0">1.5.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#3721-3725">Source</a></span><a href="#method.eq-25" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.eq" class="fn">eq</a><I>(self, other: I) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a><div class="where">where
|
||
I: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>,
|
||
Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<I as <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" title="type core::iter::traits::collect::IntoIterator::Item">Item</a>>,
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'>Determines if the elements of this <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator"><code>Iterator</code></a> are equal to those of
|
||
another. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.eq">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.eq_by" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#3744-3748">Source</a><a href="#method.eq_by" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.eq_by" class="fn">eq_by</a><I, F>(self, other: I, eq: F) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
I: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>,
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>, <I as <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" title="type core::iter::traits::collect::IntoIterator::Item">Item</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a>,</div></h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>iter_order_by</code>)</span></div></span><div class='docblock'>Determines if the elements of this <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator"><code>Iterator</code></a> are equal to those of
|
||
another with respect to the specified equality function. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.eq_by">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.ne-25" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.5.0">1.5.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#3776-3780">Source</a></span><a href="#method.ne-25" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.ne" class="fn">ne</a><I>(self, other: I) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a><div class="where">where
|
||
I: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>,
|
||
Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<I as <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" title="type core::iter::traits::collect::IntoIterator::Item">Item</a>>,
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'>Determines if the elements of this <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator"><code>Iterator</code></a> are not equal to those of
|
||
another. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.ne">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.lt-1" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.5.0">1.5.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#3797-3801">Source</a></span><a href="#method.lt-1" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.lt" class="fn">lt</a><I>(self, other: I) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a><div class="where">where
|
||
I: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>,
|
||
Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a><<I as <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" title="type core::iter::traits::collect::IntoIterator::Item">Item</a>>,
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'>Determines if the elements of this <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator"><code>Iterator</code></a> are <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.Ord.html#lexicographical-comparison" title="trait core::cmp::Ord">lexicographically</a>
|
||
less than those of another. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.lt">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.le-1" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.5.0">1.5.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#3818-3822">Source</a></span><a href="#method.le-1" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.le" class="fn">le</a><I>(self, other: I) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a><div class="where">where
|
||
I: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>,
|
||
Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a><<I as <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" title="type core::iter::traits::collect::IntoIterator::Item">Item</a>>,
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'>Determines if the elements of this <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator"><code>Iterator</code></a> are <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.Ord.html#lexicographical-comparison" title="trait core::cmp::Ord">lexicographically</a>
|
||
less or equal to those of another. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.le">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.gt-1" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.5.0">1.5.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#3839-3843">Source</a></span><a href="#method.gt-1" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.gt" class="fn">gt</a><I>(self, other: I) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a><div class="where">where
|
||
I: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>,
|
||
Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a><<I as <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" title="type core::iter::traits::collect::IntoIterator::Item">Item</a>>,
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'>Determines if the elements of this <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator"><code>Iterator</code></a> are <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.Ord.html#lexicographical-comparison" title="trait core::cmp::Ord">lexicographically</a>
|
||
greater than those of another. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.gt">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.ge-1" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.5.0">1.5.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#3860-3864">Source</a></span><a href="#method.ge-1" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.ge" class="fn">ge</a><I>(self, other: I) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a><div class="where">where
|
||
I: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>,
|
||
Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a><<I as <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" title="type core::iter::traits::collect::IntoIterator::Item">Item</a>>,
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'>Determines if the elements of this <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator"><code>Iterator</code></a> are <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.Ord.html#lexicographical-comparison" title="trait core::cmp::Ord">lexicographically</a>
|
||
greater than or equal to those of another. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.ge">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.is_sorted" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.82.0">1.82.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#3889-3892">Source</a></span><a href="#method.is_sorted" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.is_sorted" class="fn">is_sorted</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a>,</div></h4></section></summary><div class='docblock'>Checks if the elements of this iterator are sorted. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.is_sorted">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.is_sorted_by" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.82.0">1.82.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#3915-3918">Source</a></span><a href="#method.is_sorted_by" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.is_sorted_by" class="fn">is_sorted_by</a><F>(self, compare: F) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>, &Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a>,</div></h4></section></summary><div class='docblock'>Checks if the elements of this iterator are sorted using the given comparator function. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.is_sorted_by">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.is_sorted_by_key" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.82.0">1.82.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/iterator.rs.html#3959-3963">Source</a></span><a href="#method.is_sorted_by_key" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.is_sorted_by_key" class="fn">is_sorted_by_key</a><F, K>(self, f: F) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>) -> K,
|
||
K: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a>,</div></h4></section></summary><div class='docblock'>Checks if the elements of this iterator are sorted using the given key extraction
|
||
function. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#method.is_sorted_by_key">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Mul%3C%26Bound%3C'py,+PyComplex%3E%3E-for-Bound%3C'py,+PyComplex%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/complex.rs.html#107">Source</a><a href="#impl-Mul%3C%26Bound%3C'py,+PyComplex%3E%3E-for-Bound%3C'py,+PyComplex%3E" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a><&<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>>> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Output-14" class="associatedtype trait-impl"><a class="src rightside" href="../../src/pyo3/types/complex.rs.html#107">Source</a><a href="#associatedtype.Output-14" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Mul.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>></h4></section></summary><div class='docblock'>The resulting type after applying the <code>*</code> operator.</div></details><details class="toggle method-toggle" open><summary><section id="method.mul-4" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/complex.rs.html#107">Source</a><a href="#method.mul-4" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Mul.html#tymethod.mul" class="fn">mul</a>(self, other: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>>) -> <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>></h4></section></summary><div class='docblock'>Performs the <code>*</code> operation. <a href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Mul.html#tymethod.mul">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Mul%3CBound%3C'py,+PyComplex%3E%3E-for-%26Bound%3C'py,+PyComplex%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/complex.rs.html#107">Source</a><a href="#impl-Mul%3CBound%3C'py,+PyComplex%3E%3E-for-%26Bound%3C'py,+PyComplex%3E" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>>> for &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Output-12" class="associatedtype trait-impl"><a class="src rightside" href="../../src/pyo3/types/complex.rs.html#107">Source</a><a href="#associatedtype.Output-12" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Mul.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>></h4></section></summary><div class='docblock'>The resulting type after applying the <code>*</code> operator.</div></details><details class="toggle method-toggle" open><summary><section id="method.mul-2" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/complex.rs.html#107">Source</a><a href="#method.mul-2" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Mul.html#tymethod.mul" class="fn">mul</a>(self, other: <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>>) -> <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>></h4></section></summary><div class='docblock'>Performs the <code>*</code> operation. <a href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Mul.html#tymethod.mul">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Mul-for-%26Bound%3C'py,+PyComplex%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/complex.rs.html#107">Source</a><a href="#impl-Mul-for-%26Bound%3C'py,+PyComplex%3E" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a> for &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Output-11" class="associatedtype trait-impl"><a class="src rightside" href="../../src/pyo3/types/complex.rs.html#107">Source</a><a href="#associatedtype.Output-11" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Mul.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>></h4></section></summary><div class='docblock'>The resulting type after applying the <code>*</code> operator.</div></details><details class="toggle method-toggle" open><summary><section id="method.mul-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/complex.rs.html#107">Source</a><a href="#method.mul-1" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Mul.html#tymethod.mul" class="fn">mul</a>(self, other: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>>) -> <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>></h4></section></summary><div class='docblock'>Performs the <code>*</code> operation. <a href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Mul.html#tymethod.mul">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Mul-for-Bound%3C'py,+PyComplex%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/complex.rs.html#107">Source</a><a href="#impl-Mul-for-Bound%3C'py,+PyComplex%3E" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Output-13" class="associatedtype trait-impl"><a class="src rightside" href="../../src/pyo3/types/complex.rs.html#107">Source</a><a href="#associatedtype.Output-13" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Mul.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>></h4></section></summary><div class='docblock'>The resulting type after applying the <code>*</code> operator.</div></details><details class="toggle method-toggle" open><summary><section id="method.mul-3" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/complex.rs.html#107">Source</a><a href="#method.mul-3" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Mul.html#tymethod.mul" class="fn">mul</a>(self, other: <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>>) -> <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>></h4></section></summary><div class='docblock'>Performs the <code>*</code> operation. <a href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Mul.html#tymethod.mul">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Neg-for-%26Bound%3C'py,+PyComplex%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/complex.rs.html#119-124">Source</a><a href="#impl-Neg-for-%26Bound%3C'py,+PyComplex%3E" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Neg.html" title="trait core::ops::arith::Neg">Neg</a> for &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Output-19" class="associatedtype trait-impl"><a class="src rightside" href="../../src/pyo3/types/complex.rs.html#120">Source</a><a href="#associatedtype.Output-19" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Neg.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>></h4></section></summary><div class='docblock'>The resulting type after applying the <code>-</code> operator.</div></details><details class="toggle method-toggle" open><summary><section id="method.neg-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/complex.rs.html#121-123">Source</a><a href="#method.neg-1" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Neg.html#tymethod.neg" class="fn">neg</a>(self) -> <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>></h4></section></summary><div class='docblock'>Performs the unary <code>-</code> operation. <a href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Neg.html#tymethod.neg">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Neg-for-Bound%3C'py,+PyComplex%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/complex.rs.html#126-131">Source</a><a href="#impl-Neg-for-Bound%3C'py,+PyComplex%3E" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Neg.html" title="trait core::ops::arith::Neg">Neg</a> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Output-20" class="associatedtype trait-impl"><a class="src rightside" href="../../src/pyo3/types/complex.rs.html#127">Source</a><a href="#associatedtype.Output-20" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Neg.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>></h4></section></summary><div class='docblock'>The resulting type after applying the <code>-</code> operator.</div></details><details class="toggle method-toggle" open><summary><section id="method.neg-2" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/complex.rs.html#128-130">Source</a><a href="#method.neg-2" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Neg.html#tymethod.neg" class="fn">neg</a>(self) -> <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>></h4></section></summary><div class='docblock'>Performs the unary <code>-</code> operation. <a href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Neg.html#tymethod.neg">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq%3C%26%5Bu8%5D%3E-for-Bound%3C'_,+PyBytes%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/bytes.rs.html#222-227">Source</a><a href="#impl-PartialEq%3C%26%5Bu8%5D%3E-for-Bound%3C'_,+PyBytes%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><&[<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.u8.html">u8</a>]> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyBytes.html" title="struct pyo3::types::PyBytes">PyBytes</a>></h3><div class="docblock"><p>Compares whether the Python bytes object is equal to the <a href="https://doc.rust-lang.org/1.85.1/std/primitive.u8.html" title="primitive u8">u8</a>.</p>
|
||
</div></section></summary><div class="docblock"><p>In some cases Python equality might be more appropriate; see the note on <a href="../types/struct.PyBytes.html" title="struct pyo3::types::PyBytes"><code>PyBytes</code></a>.</p>
|
||
</div><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.eq-8" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/bytes.rs.html#224-226">Source</a><a href="#method.eq-8" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &&[<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.u8.html">u8</a>]) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne-8" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/cmp.rs.html#261">Source</a></span><a href="#method.ne-8" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq%3C%26Bound%3C'_,+PyBool%3E%3E-for-bool" class="impl"><a class="src rightside" href="../../src/pyo3/types/boolobject.rs.html#101-106">Source</a><a href="#impl-PartialEq%3C%26Bound%3C'_,+PyBool%3E%3E-for-bool" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><&<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyBool.html" title="struct pyo3::types::PyBool">PyBool</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>Compare <code>bool</code> with <code>&Bound<PyBool></code></p>
|
||
</div></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.eq-5" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/boolobject.rs.html#103-105">Source</a><a href="#method.eq-5" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &&<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyBool.html" title="struct pyo3::types::PyBool">PyBool</a>>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne-5" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/cmp.rs.html#261">Source</a></span><a href="#method.ne-5" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq%3C%26Bound%3C'_,+PyBytes%3E%3E-for-%5Bu8%5D" class="impl"><a class="src rightside" href="../../src/pyo3/types/bytes.rs.html#242-247">Source</a><a href="#impl-PartialEq%3C%26Bound%3C'_,+PyBytes%3E%3E-for-%5Bu8%5D" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><&<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyBytes.html" title="struct pyo3::types::PyBytes">PyBytes</a>>> for [<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.u8.html">u8</a>]</h3><div class="docblock"><p>Compares whether the Python bytes object is equal to the <a href="https://doc.rust-lang.org/1.85.1/std/primitive.u8.html" title="primitive u8">u8</a>.</p>
|
||
</div></section></summary><div class="docblock"><p>In some cases Python equality might be more appropriate; see the note on <a href="../types/struct.PyBytes.html" title="struct pyo3::types::PyBytes"><code>PyBytes</code></a>.</p>
|
||
</div><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.eq-10" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/bytes.rs.html#244-246">Source</a><a href="#method.eq-10" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &&<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyBytes.html" title="struct pyo3::types::PyBytes">PyBytes</a>>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne-10" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/cmp.rs.html#261">Source</a></span><a href="#method.ne-10" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq%3C%26Bound%3C'_,+PyFloat%3E%3E-for-f32" class="impl"><a class="src rightside" href="../../src/pyo3/types/float.rs.html#293">Source</a><a href="#impl-PartialEq%3C%26Bound%3C'_,+PyFloat%3E%3E-for-f32" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><&<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyFloat.html" title="struct pyo3::types::PyFloat">PyFloat</a>>> 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"><details class="toggle method-toggle" open><summary><section id="method.eq-23" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/float.rs.html#293">Source</a><a href="#method.eq-23" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &&<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyFloat.html" title="struct pyo3::types::PyFloat">PyFloat</a>>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne-23" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/cmp.rs.html#261">Source</a></span><a href="#method.ne-23" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq%3C%26Bound%3C'_,+PyFloat%3E%3E-for-f64" class="impl"><a class="src rightside" href="../../src/pyo3/types/float.rs.html#292">Source</a><a href="#impl-PartialEq%3C%26Bound%3C'_,+PyFloat%3E%3E-for-f64" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><&<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyFloat.html" title="struct pyo3::types::PyFloat">PyFloat</a>>> 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"><details class="toggle method-toggle" open><summary><section id="method.eq-17" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/float.rs.html#292">Source</a><a href="#method.eq-17" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &&<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyFloat.html" title="struct pyo3::types::PyFloat">PyFloat</a>>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne-17" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/cmp.rs.html#261">Source</a></span><a href="#method.ne-17" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq%3C%26Bound%3C'_,+PyString%3E%3E-for-str" class="impl"><a class="src rightside" href="../../src/pyo3/types/string.rs.html#508-513">Source</a><a href="#impl-PartialEq%3C%26Bound%3C'_,+PyString%3E%3E-for-str" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><&<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyString.html" title="struct pyo3::types::PyString">PyString</a>>> for <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.str.html">str</a></h3><div class="docblock"><p>Compares whether the data in the Python string is equal to the given UTF8.</p>
|
||
</div></section></summary><div class="docblock"><p>In some cases Python equality might be more appropriate; see the note on <a href="../types/struct.PyString.html" title="struct pyo3::types::PyString"><code>PyString</code></a>.</p>
|
||
</div><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.eq-53" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/string.rs.html#510-512">Source</a><a href="#method.eq-53" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &&<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyString.html" title="struct pyo3::types::PyString">PyString</a>>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne-53" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/cmp.rs.html#261">Source</a></span><a href="#method.ne-53" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq%3C%26bool%3E-for-Bound%3C'_,+PyBool%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/boolobject.rs.html#85-90">Source</a><a href="#impl-PartialEq%3C%26bool%3E-for-Bound%3C'_,+PyBool%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><&<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a>> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyBool.html" title="struct pyo3::types::PyBool">PyBool</a>></h3><div class="docblock"><p>Compare <code>Bound<PyBool></code> with <code>&bool</code>.</p>
|
||
</div></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.eq-3" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/boolobject.rs.html#87-89">Source</a><a href="#method.eq-3" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &&<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne-3" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/cmp.rs.html#261">Source</a></span><a href="#method.ne-3" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq%3C%26f32%3E-for-Bound%3C'_,+PyFloat%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/float.rs.html#293">Source</a><a href="#impl-PartialEq%3C%26f32%3E-for-Bound%3C'_,+PyFloat%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><&<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.f32.html">f32</a>> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyFloat.html" title="struct pyo3::types::PyFloat">PyFloat</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.eq-21" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/float.rs.html#293">Source</a><a href="#method.eq-21" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &&<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.f32.html">f32</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne-21" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/cmp.rs.html#261">Source</a></span><a href="#method.ne-21" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq%3C%26f64%3E-for-Bound%3C'_,+PyFloat%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/float.rs.html#292">Source</a><a href="#impl-PartialEq%3C%26f64%3E-for-Bound%3C'_,+PyFloat%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><&<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.f64.html">f64</a>> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyFloat.html" title="struct pyo3::types::PyFloat">PyFloat</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.eq-15" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/float.rs.html#292">Source</a><a href="#method.eq-15" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &&<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.f64.html">f64</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne-15" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/cmp.rs.html#261">Source</a></span><a href="#method.ne-15" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq%3C%26str%3E-for-Bound%3C'_,+PyString%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/string.rs.html#488-493">Source</a><a href="#impl-PartialEq%3C%26str%3E-for-Bound%3C'_,+PyString%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><&<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.str.html">str</a>> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyString.html" title="struct pyo3::types::PyString">PyString</a>></h3><div class="docblock"><p>Compares whether the data in the Python string is equal to the given UTF8.</p>
|
||
</div></section></summary><div class="docblock"><p>In some cases Python equality might be more appropriate; see the note on <a href="../types/struct.PyString.html" title="struct pyo3::types::PyString"><code>PyString</code></a>.</p>
|
||
</div><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.eq-51" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/string.rs.html#490-492">Source</a><a href="#method.eq-51" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &&<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.str.html">str</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne-51" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/cmp.rs.html#261">Source</a></span><a href="#method.ne-51" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq%3C%5Bu8%5D%3E-for-%26Bound%3C'_,+PyBytes%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/bytes.rs.html#262-267">Source</a><a href="#impl-PartialEq%3C%5Bu8%5D%3E-for-%26Bound%3C'_,+PyBytes%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><[<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.u8.html">u8</a>]> for &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyBytes.html" title="struct pyo3::types::PyBytes">PyBytes</a>></h3><div class="docblock"><p>Compares whether the Python bytes object is equal to the <a href="https://doc.rust-lang.org/1.85.1/std/primitive.u8.html" title="primitive u8">u8</a>.</p>
|
||
</div></section></summary><div class="docblock"><p>In some cases Python equality might be more appropriate; see the note on <a href="../types/struct.PyBytes.html" title="struct pyo3::types::PyBytes"><code>PyBytes</code></a>.</p>
|
||
</div><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.eq-12" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/bytes.rs.html#264-266">Source</a><a href="#method.eq-12" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &[<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.u8.html">u8</a>]) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne-12" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/cmp.rs.html#261">Source</a></span><a href="#method.ne-12" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq%3C%5Bu8%5D%3E-for-Bound%3C'_,+PyBytes%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/bytes.rs.html#212-217">Source</a><a href="#impl-PartialEq%3C%5Bu8%5D%3E-for-Bound%3C'_,+PyBytes%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><[<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.u8.html">u8</a>]> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyBytes.html" title="struct pyo3::types::PyBytes">PyBytes</a>></h3><div class="docblock"><p>Compares whether the Python bytes object is equal to the <a href="https://doc.rust-lang.org/1.85.1/std/primitive.u8.html" title="primitive u8">u8</a>.</p>
|
||
</div></section></summary><div class="docblock"><p>In some cases Python equality might be more appropriate; see the note on <a href="../types/struct.PyBytes.html" title="struct pyo3::types::PyBytes"><code>PyBytes</code></a>.</p>
|
||
</div><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.eq-7" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/bytes.rs.html#214-216">Source</a><a href="#method.eq-7" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &[<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.u8.html">u8</a>]) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne-7" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/cmp.rs.html#261">Source</a></span><a href="#method.ne-7" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq%3CBound%3C'_,+PyBool%3E%3E-for-%26bool" class="impl"><a class="src rightside" href="../../src/pyo3/types/boolobject.rs.html#109-114">Source</a><a href="#impl-PartialEq%3CBound%3C'_,+PyBool%3E%3E-for-%26bool" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyBool.html" title="struct pyo3::types::PyBool">PyBool</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>Compare <code>&bool</code> with <code>Bound<PyBool></code></p>
|
||
</div></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.eq-6" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/boolobject.rs.html#111-113">Source</a><a href="#method.eq-6" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyBool.html" title="struct pyo3::types::PyBool">PyBool</a>>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne-6" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/cmp.rs.html#261">Source</a></span><a href="#method.ne-6" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq%3CBound%3C'_,+PyBool%3E%3E-for-bool" class="impl"><a class="src rightside" href="../../src/pyo3/types/boolobject.rs.html#93-98">Source</a><a href="#impl-PartialEq%3CBound%3C'_,+PyBool%3E%3E-for-bool" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyBool.html" title="struct pyo3::types::PyBool">PyBool</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>Compare <code>bool</code> with <code>Bound<PyBool></code></p>
|
||
</div></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.eq-4" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/boolobject.rs.html#95-97">Source</a><a href="#method.eq-4" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyBool.html" title="struct pyo3::types::PyBool">PyBool</a>>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne-4" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/cmp.rs.html#261">Source</a></span><a href="#method.ne-4" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq%3CBound%3C'_,+PyBytes%3E%3E-for-%26%5Bu8%5D" class="impl"><a class="src rightside" href="../../src/pyo3/types/bytes.rs.html#252-257">Source</a><a href="#impl-PartialEq%3CBound%3C'_,+PyBytes%3E%3E-for-%26%5Bu8%5D" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyBytes.html" title="struct pyo3::types::PyBytes">PyBytes</a>>> for &[<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.u8.html">u8</a>]</h3><div class="docblock"><p>Compares whether the Python bytes object is equal to the <a href="https://doc.rust-lang.org/1.85.1/std/primitive.u8.html" title="primitive u8">u8</a>.</p>
|
||
</div></section></summary><div class="docblock"><p>In some cases Python equality might be more appropriate; see the note on <a href="../types/struct.PyBytes.html" title="struct pyo3::types::PyBytes"><code>PyBytes</code></a>.</p>
|
||
</div><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.eq-11" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/bytes.rs.html#254-256">Source</a><a href="#method.eq-11" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyBytes.html" title="struct pyo3::types::PyBytes">PyBytes</a>>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne-11" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/cmp.rs.html#261">Source</a></span><a href="#method.ne-11" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq%3CBound%3C'_,+PyBytes%3E%3E-for-%5Bu8%5D" class="impl"><a class="src rightside" href="../../src/pyo3/types/bytes.rs.html#232-237">Source</a><a href="#impl-PartialEq%3CBound%3C'_,+PyBytes%3E%3E-for-%5Bu8%5D" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyBytes.html" title="struct pyo3::types::PyBytes">PyBytes</a>>> for [<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.u8.html">u8</a>]</h3><div class="docblock"><p>Compares whether the Python bytes object is equal to the <a href="https://doc.rust-lang.org/1.85.1/std/primitive.u8.html" title="primitive u8">u8</a>.</p>
|
||
</div></section></summary><div class="docblock"><p>In some cases Python equality might be more appropriate; see the note on <a href="../types/struct.PyBytes.html" title="struct pyo3::types::PyBytes"><code>PyBytes</code></a>.</p>
|
||
</div><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.eq-9" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/bytes.rs.html#234-236">Source</a><a href="#method.eq-9" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyBytes.html" title="struct pyo3::types::PyBytes">PyBytes</a>>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne-9" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/cmp.rs.html#261">Source</a></span><a href="#method.ne-9" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq%3CBound%3C'_,+PyFloat%3E%3E-for-%26f32" class="impl"><a class="src rightside" href="../../src/pyo3/types/float.rs.html#293">Source</a><a href="#impl-PartialEq%3CBound%3C'_,+PyFloat%3E%3E-for-%26f32" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyFloat.html" title="struct pyo3::types::PyFloat">PyFloat</a>>> 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"><details class="toggle method-toggle" open><summary><section id="method.eq-24" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/float.rs.html#293">Source</a><a href="#method.eq-24" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyFloat.html" title="struct pyo3::types::PyFloat">PyFloat</a>>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne-24" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/cmp.rs.html#261">Source</a></span><a href="#method.ne-24" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq%3CBound%3C'_,+PyFloat%3E%3E-for-%26f64" class="impl"><a class="src rightside" href="../../src/pyo3/types/float.rs.html#292">Source</a><a href="#impl-PartialEq%3CBound%3C'_,+PyFloat%3E%3E-for-%26f64" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyFloat.html" title="struct pyo3::types::PyFloat">PyFloat</a>>> 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"><details class="toggle method-toggle" open><summary><section id="method.eq-18" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/float.rs.html#292">Source</a><a href="#method.eq-18" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyFloat.html" title="struct pyo3::types::PyFloat">PyFloat</a>>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne-18" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/cmp.rs.html#261">Source</a></span><a href="#method.ne-18" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq%3CBound%3C'_,+PyFloat%3E%3E-for-f32" class="impl"><a class="src rightside" href="../../src/pyo3/types/float.rs.html#293">Source</a><a href="#impl-PartialEq%3CBound%3C'_,+PyFloat%3E%3E-for-f32" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyFloat.html" title="struct pyo3::types::PyFloat">PyFloat</a>>> 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"><details class="toggle method-toggle" open><summary><section id="method.eq-22" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/float.rs.html#293">Source</a><a href="#method.eq-22" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyFloat.html" title="struct pyo3::types::PyFloat">PyFloat</a>>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne-22" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/cmp.rs.html#261">Source</a></span><a href="#method.ne-22" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq%3CBound%3C'_,+PyFloat%3E%3E-for-f64" class="impl"><a class="src rightside" href="../../src/pyo3/types/float.rs.html#292">Source</a><a href="#impl-PartialEq%3CBound%3C'_,+PyFloat%3E%3E-for-f64" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyFloat.html" title="struct pyo3::types::PyFloat">PyFloat</a>>> 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"><details class="toggle method-toggle" open><summary><section id="method.eq-16" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/float.rs.html#292">Source</a><a href="#method.eq-16" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyFloat.html" title="struct pyo3::types::PyFloat">PyFloat</a>>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne-16" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/cmp.rs.html#261">Source</a></span><a href="#method.ne-16" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq%3CBound%3C'_,+PyInt%3E%3E-for-i128" class="impl"><a class="src rightside" href="../../src/pyo3/types/num.rs.html#71">Source</a><a href="#impl-PartialEq%3CBound%3C'_,+PyInt%3E%3E-for-i128" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyInt.html" title="struct pyo3::types::PyInt">PyInt</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"><details class="toggle method-toggle" open><summary><section id="method.eq-43" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/num.rs.html#71">Source</a><a href="#method.eq-43" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyInt.html" title="struct pyo3::types::PyInt">PyInt</a>>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne-43" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/cmp.rs.html#261">Source</a></span><a href="#method.ne-43" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq%3CBound%3C'_,+PyInt%3E%3E-for-i16" class="impl"><a class="src rightside" href="../../src/pyo3/types/num.rs.html#65">Source</a><a href="#impl-PartialEq%3CBound%3C'_,+PyInt%3E%3E-for-i16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyInt.html" title="struct pyo3::types::PyInt">PyInt</a>>> 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"><details class="toggle method-toggle" open><summary><section id="method.eq-31" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/num.rs.html#65">Source</a><a href="#method.eq-31" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyInt.html" title="struct pyo3::types::PyInt">PyInt</a>>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne-31" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/cmp.rs.html#261">Source</a></span><a href="#method.ne-31" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq%3CBound%3C'_,+PyInt%3E%3E-for-i32" class="impl"><a class="src rightside" href="../../src/pyo3/types/num.rs.html#67">Source</a><a href="#impl-PartialEq%3CBound%3C'_,+PyInt%3E%3E-for-i32" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyInt.html" title="struct pyo3::types::PyInt">PyInt</a>>> 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"><details class="toggle method-toggle" open><summary><section id="method.eq-35" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/num.rs.html#67">Source</a><a href="#method.eq-35" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyInt.html" title="struct pyo3::types::PyInt">PyInt</a>>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne-35" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/cmp.rs.html#261">Source</a></span><a href="#method.ne-35" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq%3CBound%3C'_,+PyInt%3E%3E-for-i64" class="impl"><a class="src rightside" href="../../src/pyo3/types/num.rs.html#69">Source</a><a href="#impl-PartialEq%3CBound%3C'_,+PyInt%3E%3E-for-i64" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyInt.html" title="struct pyo3::types::PyInt">PyInt</a>>> 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"><details class="toggle method-toggle" open><summary><section id="method.eq-39" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/num.rs.html#69">Source</a><a href="#method.eq-39" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyInt.html" title="struct pyo3::types::PyInt">PyInt</a>>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne-39" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/cmp.rs.html#261">Source</a></span><a href="#method.ne-39" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq%3CBound%3C'_,+PyInt%3E%3E-for-i8" class="impl"><a class="src rightside" href="../../src/pyo3/types/num.rs.html#63">Source</a><a href="#impl-PartialEq%3CBound%3C'_,+PyInt%3E%3E-for-i8" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyInt.html" title="struct pyo3::types::PyInt">PyInt</a>>> 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"><details class="toggle method-toggle" open><summary><section id="method.eq-27" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/num.rs.html#63">Source</a><a href="#method.eq-27" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyInt.html" title="struct pyo3::types::PyInt">PyInt</a>>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne-27" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/cmp.rs.html#261">Source</a></span><a href="#method.ne-27" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq%3CBound%3C'_,+PyInt%3E%3E-for-isize" class="impl"><a class="src rightside" href="../../src/pyo3/types/num.rs.html#73">Source</a><a href="#impl-PartialEq%3CBound%3C'_,+PyInt%3E%3E-for-isize" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyInt.html" title="struct pyo3::types::PyInt">PyInt</a>>> 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"><details class="toggle method-toggle" open><summary><section id="method.eq-47" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/num.rs.html#73">Source</a><a href="#method.eq-47" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyInt.html" title="struct pyo3::types::PyInt">PyInt</a>>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne-47" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/cmp.rs.html#261">Source</a></span><a href="#method.ne-47" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq%3CBound%3C'_,+PyInt%3E%3E-for-u128" class="impl"><a class="src rightside" href="../../src/pyo3/types/num.rs.html#72">Source</a><a href="#impl-PartialEq%3CBound%3C'_,+PyInt%3E%3E-for-u128" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyInt.html" title="struct pyo3::types::PyInt">PyInt</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"><details class="toggle method-toggle" open><summary><section id="method.eq-45" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/num.rs.html#72">Source</a><a href="#method.eq-45" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyInt.html" title="struct pyo3::types::PyInt">PyInt</a>>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne-45" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/cmp.rs.html#261">Source</a></span><a href="#method.ne-45" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq%3CBound%3C'_,+PyInt%3E%3E-for-u16" class="impl"><a class="src rightside" href="../../src/pyo3/types/num.rs.html#66">Source</a><a href="#impl-PartialEq%3CBound%3C'_,+PyInt%3E%3E-for-u16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyInt.html" title="struct pyo3::types::PyInt">PyInt</a>>> 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"><details class="toggle method-toggle" open><summary><section id="method.eq-33" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/num.rs.html#66">Source</a><a href="#method.eq-33" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyInt.html" title="struct pyo3::types::PyInt">PyInt</a>>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne-33" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/cmp.rs.html#261">Source</a></span><a href="#method.ne-33" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq%3CBound%3C'_,+PyInt%3E%3E-for-u32" class="impl"><a class="src rightside" href="../../src/pyo3/types/num.rs.html#68">Source</a><a href="#impl-PartialEq%3CBound%3C'_,+PyInt%3E%3E-for-u32" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyInt.html" title="struct pyo3::types::PyInt">PyInt</a>>> 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"><details class="toggle method-toggle" open><summary><section id="method.eq-37" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/num.rs.html#68">Source</a><a href="#method.eq-37" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyInt.html" title="struct pyo3::types::PyInt">PyInt</a>>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne-37" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/cmp.rs.html#261">Source</a></span><a href="#method.ne-37" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq%3CBound%3C'_,+PyInt%3E%3E-for-u64" class="impl"><a class="src rightside" href="../../src/pyo3/types/num.rs.html#70">Source</a><a href="#impl-PartialEq%3CBound%3C'_,+PyInt%3E%3E-for-u64" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyInt.html" title="struct pyo3::types::PyInt">PyInt</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"><details class="toggle method-toggle" open><summary><section id="method.eq-41" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/num.rs.html#70">Source</a><a href="#method.eq-41" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyInt.html" title="struct pyo3::types::PyInt">PyInt</a>>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne-41" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/cmp.rs.html#261">Source</a></span><a href="#method.ne-41" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq%3CBound%3C'_,+PyInt%3E%3E-for-u8" class="impl"><a class="src rightside" href="../../src/pyo3/types/num.rs.html#64">Source</a><a href="#impl-PartialEq%3CBound%3C'_,+PyInt%3E%3E-for-u8" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyInt.html" title="struct pyo3::types::PyInt">PyInt</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"><details class="toggle method-toggle" open><summary><section id="method.eq-29" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/num.rs.html#64">Source</a><a href="#method.eq-29" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyInt.html" title="struct pyo3::types::PyInt">PyInt</a>>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne-29" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/cmp.rs.html#261">Source</a></span><a href="#method.ne-29" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq%3CBound%3C'_,+PyInt%3E%3E-for-usize" class="impl"><a class="src rightside" href="../../src/pyo3/types/num.rs.html#74">Source</a><a href="#impl-PartialEq%3CBound%3C'_,+PyInt%3E%3E-for-usize" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyInt.html" title="struct pyo3::types::PyInt">PyInt</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"><details class="toggle method-toggle" open><summary><section id="method.eq-49" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/num.rs.html#74">Source</a><a href="#method.eq-49" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyInt.html" title="struct pyo3::types::PyInt">PyInt</a>>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne-49" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/cmp.rs.html#261">Source</a></span><a href="#method.ne-49" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq%3CBound%3C'_,+PyString%3E%3E-for-%26str" class="impl"><a class="src rightside" href="../../src/pyo3/types/string.rs.html#518-523">Source</a><a href="#impl-PartialEq%3CBound%3C'_,+PyString%3E%3E-for-%26str" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyString.html" title="struct pyo3::types::PyString">PyString</a>>> for &<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.str.html">str</a></h3><div class="docblock"><p>Compares whether the data in the Python string is equal to the given UTF8.</p>
|
||
</div></section></summary><div class="docblock"><p>In some cases Python equality might be more appropriate; see the note on <a href="../types/struct.PyString.html" title="struct pyo3::types::PyString"><code>PyString</code></a>.</p>
|
||
</div><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.eq-54" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/string.rs.html#520-522">Source</a><a href="#method.eq-54" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyString.html" title="struct pyo3::types::PyString">PyString</a>>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne-54" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/cmp.rs.html#261">Source</a></span><a href="#method.ne-54" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq%3CBound%3C'_,+PyString%3E%3E-for-str" class="impl"><a class="src rightside" href="../../src/pyo3/types/string.rs.html#498-503">Source</a><a href="#impl-PartialEq%3CBound%3C'_,+PyString%3E%3E-for-str" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyString.html" title="struct pyo3::types::PyString">PyString</a>>> for <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.str.html">str</a></h3><div class="docblock"><p>Compares whether the data in the Python string is equal to the given UTF8.</p>
|
||
</div></section></summary><div class="docblock"><p>In some cases Python equality might be more appropriate; see the note on <a href="../types/struct.PyString.html" title="struct pyo3::types::PyString"><code>PyString</code></a>.</p>
|
||
</div><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.eq-52" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/string.rs.html#500-502">Source</a><a href="#method.eq-52" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyString.html" title="struct pyo3::types::PyString">PyString</a>>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne-52" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/cmp.rs.html#261">Source</a></span><a href="#method.ne-52" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq%3Cbool%3E-for-%26Bound%3C'_,+PyBool%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/boolobject.rs.html#77-82">Source</a><a href="#impl-PartialEq%3Cbool%3E-for-%26Bound%3C'_,+PyBool%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a>> for &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyBool.html" title="struct pyo3::types::PyBool">PyBool</a>></h3><div class="docblock"><p>Compare <code>&Bound<PyBool></code> with <code>bool</code>.</p>
|
||
</div></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.eq-2" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/boolobject.rs.html#79-81">Source</a><a href="#method.eq-2" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne-2" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/cmp.rs.html#261">Source</a></span><a href="#method.ne-2" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq%3Cbool%3E-for-Bound%3C'_,+PyBool%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/boolobject.rs.html#69-74">Source</a><a href="#impl-PartialEq%3Cbool%3E-for-Bound%3C'_,+PyBool%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a>> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyBool.html" title="struct pyo3::types::PyBool">PyBool</a>></h3><div class="docblock"><p>Compare <code>Bound<PyBool></code> with <code>bool</code>.</p>
|
||
</div></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.eq-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/boolobject.rs.html#71-73">Source</a><a href="#method.eq-1" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne-1" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/cmp.rs.html#261">Source</a></span><a href="#method.ne-1" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq%3Cf32%3E-for-%26Bound%3C'_,+PyFloat%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/float.rs.html#293">Source</a><a href="#impl-PartialEq%3Cf32%3E-for-%26Bound%3C'_,+PyFloat%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.f32.html">f32</a>> for &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyFloat.html" title="struct pyo3::types::PyFloat">PyFloat</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.eq-20" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/float.rs.html#293">Source</a><a href="#method.eq-20" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.f32.html">f32</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne-20" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/cmp.rs.html#261">Source</a></span><a href="#method.ne-20" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq%3Cf32%3E-for-Bound%3C'_,+PyFloat%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/float.rs.html#293">Source</a><a href="#impl-PartialEq%3Cf32%3E-for-Bound%3C'_,+PyFloat%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.f32.html">f32</a>> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyFloat.html" title="struct pyo3::types::PyFloat">PyFloat</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.eq-19" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/float.rs.html#293">Source</a><a href="#method.eq-19" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.f32.html">f32</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne-19" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/cmp.rs.html#261">Source</a></span><a href="#method.ne-19" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq%3Cf64%3E-for-%26Bound%3C'_,+PyFloat%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/float.rs.html#292">Source</a><a href="#impl-PartialEq%3Cf64%3E-for-%26Bound%3C'_,+PyFloat%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.f64.html">f64</a>> for &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyFloat.html" title="struct pyo3::types::PyFloat">PyFloat</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.eq-14" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/float.rs.html#292">Source</a><a href="#method.eq-14" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.f64.html">f64</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne-14" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/cmp.rs.html#261">Source</a></span><a href="#method.ne-14" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq%3Cf64%3E-for-Bound%3C'_,+PyFloat%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/float.rs.html#292">Source</a><a href="#impl-PartialEq%3Cf64%3E-for-Bound%3C'_,+PyFloat%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.f64.html">f64</a>> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyFloat.html" title="struct pyo3::types::PyFloat">PyFloat</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.eq-13" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/float.rs.html#292">Source</a><a href="#method.eq-13" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.f64.html">f64</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne-13" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/cmp.rs.html#261">Source</a></span><a href="#method.ne-13" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq%3Ci128%3E-for-Bound%3C'_,+PyInt%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/num.rs.html#71">Source</a><a href="#impl-PartialEq%3Ci128%3E-for-Bound%3C'_,+PyInt%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.i128.html">i128</a>> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyInt.html" title="struct pyo3::types::PyInt">PyInt</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.eq-42" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/num.rs.html#71">Source</a><a href="#method.eq-42" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.i128.html">i128</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne-42" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/cmp.rs.html#261">Source</a></span><a href="#method.ne-42" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq%3Ci16%3E-for-Bound%3C'_,+PyInt%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/num.rs.html#65">Source</a><a href="#impl-PartialEq%3Ci16%3E-for-Bound%3C'_,+PyInt%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.i16.html">i16</a>> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyInt.html" title="struct pyo3::types::PyInt">PyInt</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.eq-30" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/num.rs.html#65">Source</a><a href="#method.eq-30" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.i16.html">i16</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne-30" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/cmp.rs.html#261">Source</a></span><a href="#method.ne-30" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq%3Ci32%3E-for-Bound%3C'_,+PyInt%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/num.rs.html#67">Source</a><a href="#impl-PartialEq%3Ci32%3E-for-Bound%3C'_,+PyInt%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.i32.html">i32</a>> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyInt.html" title="struct pyo3::types::PyInt">PyInt</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.eq-34" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/num.rs.html#67">Source</a><a href="#method.eq-34" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.i32.html">i32</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne-34" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/cmp.rs.html#261">Source</a></span><a href="#method.ne-34" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq%3Ci64%3E-for-Bound%3C'_,+PyInt%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/num.rs.html#69">Source</a><a href="#impl-PartialEq%3Ci64%3E-for-Bound%3C'_,+PyInt%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.i64.html">i64</a>> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyInt.html" title="struct pyo3::types::PyInt">PyInt</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.eq-38" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/num.rs.html#69">Source</a><a href="#method.eq-38" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.i64.html">i64</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne-38" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/cmp.rs.html#261">Source</a></span><a href="#method.ne-38" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq%3Ci8%3E-for-Bound%3C'_,+PyInt%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/num.rs.html#63">Source</a><a href="#impl-PartialEq%3Ci8%3E-for-Bound%3C'_,+PyInt%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.i8.html">i8</a>> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyInt.html" title="struct pyo3::types::PyInt">PyInt</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.eq-26" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/num.rs.html#63">Source</a><a href="#method.eq-26" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.i8.html">i8</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne-26" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/cmp.rs.html#261">Source</a></span><a href="#method.ne-26" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq%3Cisize%3E-for-Bound%3C'_,+PyInt%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/num.rs.html#73">Source</a><a href="#impl-PartialEq%3Cisize%3E-for-Bound%3C'_,+PyInt%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.isize.html">isize</a>> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyInt.html" title="struct pyo3::types::PyInt">PyInt</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.eq-46" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/num.rs.html#73">Source</a><a href="#method.eq-46" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.isize.html">isize</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne-46" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/cmp.rs.html#261">Source</a></span><a href="#method.ne-46" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq%3Cstr%3E-for-%26Bound%3C'_,+PyString%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/string.rs.html#528-533">Source</a><a href="#impl-PartialEq%3Cstr%3E-for-%26Bound%3C'_,+PyString%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.str.html">str</a>> for &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyString.html" title="struct pyo3::types::PyString">PyString</a>></h3><div class="docblock"><p>Compares whether the data in the Python string is equal to the given UTF8.</p>
|
||
</div></section></summary><div class="docblock"><p>In some cases Python equality might be more appropriate; see the note on <a href="../types/struct.PyString.html" title="struct pyo3::types::PyString"><code>PyString</code></a>.</p>
|
||
</div><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.eq-55" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/string.rs.html#530-532">Source</a><a href="#method.eq-55" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.str.html">str</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne-55" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/cmp.rs.html#261">Source</a></span><a href="#method.ne-55" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq%3Cstr%3E-for-Bound%3C'_,+PyString%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/string.rs.html#478-483">Source</a><a href="#impl-PartialEq%3Cstr%3E-for-Bound%3C'_,+PyString%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.str.html">str</a>> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyString.html" title="struct pyo3::types::PyString">PyString</a>></h3><div class="docblock"><p>Compares whether the data in the Python string is equal to the given UTF8.</p>
|
||
</div></section></summary><div class="docblock"><p>In some cases Python equality might be more appropriate; see the note on <a href="../types/struct.PyString.html" title="struct pyo3::types::PyString"><code>PyString</code></a>.</p>
|
||
</div><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.eq-50" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/string.rs.html#480-482">Source</a><a href="#method.eq-50" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.str.html">str</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne-50" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/cmp.rs.html#261">Source</a></span><a href="#method.ne-50" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq%3Cu128%3E-for-Bound%3C'_,+PyInt%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/num.rs.html#72">Source</a><a href="#impl-PartialEq%3Cu128%3E-for-Bound%3C'_,+PyInt%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.u128.html">u128</a>> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyInt.html" title="struct pyo3::types::PyInt">PyInt</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.eq-44" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/num.rs.html#72">Source</a><a href="#method.eq-44" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.u128.html">u128</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne-44" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/cmp.rs.html#261">Source</a></span><a href="#method.ne-44" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq%3Cu16%3E-for-Bound%3C'_,+PyInt%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/num.rs.html#66">Source</a><a href="#impl-PartialEq%3Cu16%3E-for-Bound%3C'_,+PyInt%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.u16.html">u16</a>> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyInt.html" title="struct pyo3::types::PyInt">PyInt</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.eq-32" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/num.rs.html#66">Source</a><a href="#method.eq-32" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.u16.html">u16</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne-32" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/cmp.rs.html#261">Source</a></span><a href="#method.ne-32" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq%3Cu32%3E-for-Bound%3C'_,+PyInt%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/num.rs.html#68">Source</a><a href="#impl-PartialEq%3Cu32%3E-for-Bound%3C'_,+PyInt%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.u32.html">u32</a>> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyInt.html" title="struct pyo3::types::PyInt">PyInt</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.eq-36" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/num.rs.html#68">Source</a><a href="#method.eq-36" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.u32.html">u32</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne-36" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/cmp.rs.html#261">Source</a></span><a href="#method.ne-36" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq%3Cu64%3E-for-Bound%3C'_,+PyInt%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/num.rs.html#70">Source</a><a href="#impl-PartialEq%3Cu64%3E-for-Bound%3C'_,+PyInt%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.u64.html">u64</a>> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyInt.html" title="struct pyo3::types::PyInt">PyInt</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.eq-40" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/num.rs.html#70">Source</a><a href="#method.eq-40" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.u64.html">u64</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne-40" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/cmp.rs.html#261">Source</a></span><a href="#method.ne-40" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq%3Cu8%3E-for-Bound%3C'_,+PyInt%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/num.rs.html#64">Source</a><a href="#impl-PartialEq%3Cu8%3E-for-Bound%3C'_,+PyInt%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.u8.html">u8</a>> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyInt.html" title="struct pyo3::types::PyInt">PyInt</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.eq-28" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/num.rs.html#64">Source</a><a href="#method.eq-28" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.u8.html">u8</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne-28" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/cmp.rs.html#261">Source</a></span><a href="#method.ne-28" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq%3Cusize%3E-for-Bound%3C'_,+PyInt%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/num.rs.html#74">Source</a><a href="#impl-PartialEq%3Cusize%3E-for-Bound%3C'_,+PyInt%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.usize.html">usize</a>> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyInt.html" title="struct pyo3::types::PyInt">PyInt</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.eq-48" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/num.rs.html#74">Source</a><a href="#method.eq-48" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.usize.html">usize</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne-48" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.1/src/core/cmp.rs.html#261">Source</a></span><a href="#method.ne-48" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PyAnyMethods%3C'py%3E-for-Bound%3C'py,+PyAny%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#964-1613">Source</a><a href="#impl-PyAnyMethods%3C'py%3E-for-Bound%3C'py,+PyAny%3E" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="../types/trait.PyAnyMethods.html" title="trait pyo3::types::PyAnyMethods">PyAnyMethods</a><'py> for <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>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.add" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1227">Source</a><a href="#method.add" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.add" class="fn">add</a><O>(&self, other: O) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<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>>><div class="where">where
|
||
O: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py>,</div></h4></section></summary><div class="docblock"><p>Computes <code>self + other</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sub" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1228">Source</a><a href="#method.sub" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.sub" class="fn">sub</a><O>(&self, other: O) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<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>>><div class="where">where
|
||
O: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py>,</div></h4></section></summary><div class="docblock"><p>Computes <code>self - other</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.mul" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1229">Source</a><a href="#method.mul" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.mul" class="fn">mul</a><O>(&self, other: O) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<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>>><div class="where">where
|
||
O: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py>,</div></h4></section></summary><div class="docblock"><p>Computes <code>self * other</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.matmul" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1230">Source</a><a href="#method.matmul" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.matmul" class="fn">matmul</a><O>(&self, other: O) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<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>>><div class="where">where
|
||
O: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py>,</div></h4></section></summary><div class="docblock"><p>Computes <code>self @ other</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.div" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1231">Source</a><a href="#method.div" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.div" class="fn">div</a><O>(&self, other: O) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<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>>><div class="where">where
|
||
O: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py>,</div></h4></section></summary><div class="docblock"><p>Computes <code>self / other</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.floor_div" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1232">Source</a><a href="#method.floor_div" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.floor_div" class="fn">floor_div</a><O>(&self, other: O) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<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>>><div class="where">where
|
||
O: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py>,</div></h4></section></summary><div class="docblock"><p>Computes <code>self // other</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.rem" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1233">Source</a><a href="#method.rem" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.rem" class="fn">rem</a><O>(&self, other: O) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<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>>><div class="where">where
|
||
O: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py>,</div></h4></section></summary><div class="docblock"><p>Computes <code>self % other</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.lshift" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1234">Source</a><a href="#method.lshift" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.lshift" class="fn">lshift</a><O>(&self, other: O) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<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>>><div class="where">where
|
||
O: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py>,</div></h4></section></summary><div class="docblock"><p>Computes <code>self << other</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.rshift" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1235">Source</a><a href="#method.rshift" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.rshift" class="fn">rshift</a><O>(&self, other: O) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<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>>><div class="where">where
|
||
O: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py>,</div></h4></section></summary><div class="docblock"><p>Computes <code>self >> other</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.bitand" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1236">Source</a><a href="#method.bitand" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.bitand" class="fn">bitand</a><O>(&self, other: O) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<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>>><div class="where">where
|
||
O: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py>,</div></h4></section></summary><div class="docblock"><p>Computes <code>self & other</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.bitor" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1237">Source</a><a href="#method.bitor" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.bitor" class="fn">bitor</a><O>(&self, other: O) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<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>>><div class="where">where
|
||
O: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py>,</div></h4></section></summary><div class="docblock"><p>Computes <code>self | other</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.bitxor" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1238">Source</a><a href="#method.bitxor" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.bitxor" class="fn">bitxor</a><O>(&self, other: O) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<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>>><div class="where">where
|
||
O: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py>,</div></h4></section></summary><div class="docblock"><p>Computes <code>self ^ other</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.divmod" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1241-1259">Source</a><a href="#method.divmod" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.divmod" class="fn">divmod</a><O>(&self, other: O) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<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>>><div class="where">where
|
||
O: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py>,</div></h4></section></summary><div class="docblock"><p>Computes <code>divmod(self, other)</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.pow" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1263-1285">Source</a><a href="#method.pow" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.pow" class="fn">pow</a><O1, O2>(&self, other: O1, modulus: O2) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<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>>><div class="where">where
|
||
O1: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py>,
|
||
O2: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py>,</div></h4></section></summary><div class="docblock"><p>Computes <code>self ** other % modulus</code> (<code>pow(self, other, modulus)</code>).
|
||
<code>py.None()</code> may be passed for the <code>modulus</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.is" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#966-968">Source</a><a href="#method.is" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.is" class="fn">is</a><T: <a class="trait" href="../conversion/trait.AsPyPointer.html" title="trait pyo3::conversion::AsPyPointer">AsPyPointer</a>>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&T</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Returns whether <code>self</code> and <code>other</code> point to the same object. To compare
|
||
the equality of two objects (the <code>==</code> operator), use <a href="../types/trait.PyAnyMethods.html#tymethod.eq" title="method pyo3::types::PyAnyMethods::eq"><code>eq</code></a>. <a href="../types/trait.PyAnyMethods.html#tymethod.is">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.hasattr" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#970-985">Source</a><a href="#method.hasattr" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.hasattr" class="fn">hasattr</a><N>(&self, attr_name: N) -> <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.bool.html">bool</a>><div class="where">where
|
||
N: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py, Target = <a class="struct" href="../types/struct.PyString.html" title="struct pyo3::types::PyString">PyString</a>>,</div></h4></section></summary><div class='docblock'>Determines whether this object has the given attribute. <a href="../types/trait.PyAnyMethods.html#tymethod.hasattr">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.getattr" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#987-1008">Source</a><a href="#method.getattr" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.getattr" class="fn">getattr</a><N>(&self, attr_name: N) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<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>>><div class="where">where
|
||
N: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py, Target = <a class="struct" href="../types/struct.PyString.html" title="struct pyo3::types::PyString">PyString</a>>,</div></h4></section></summary><div class='docblock'>Retrieves an attribute value. <a href="../types/trait.PyAnyMethods.html#tymethod.getattr">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.getattr_opt" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1010-1056">Source</a><a href="#method.getattr_opt" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.getattr_opt" class="fn">getattr_opt</a><N>(&self, attr_name: N) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<a class="enum" href="https://doc.rust-lang.org/1.85.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<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>>>><div class="where">where
|
||
N: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py, Target = <a class="struct" href="../types/struct.PyString.html" title="struct pyo3::types::PyString">PyString</a>>,</div></h4></section></summary><div class='docblock'>Retrieves an attribute value optionally. <a href="../types/trait.PyAnyMethods.html#tymethod.getattr_opt">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.setattr" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1058-1079">Source</a><a href="#method.setattr" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.setattr" class="fn">setattr</a><N, V>(&self, attr_name: N, value: V) -> <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.unit.html">()</a>><div class="where">where
|
||
N: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py, Target = <a class="struct" href="../types/struct.PyString.html" title="struct pyo3::types::PyString">PyString</a>>,
|
||
V: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py>,</div></h4></section></summary><div class='docblock'>Sets an attribute value. <a href="../types/trait.PyAnyMethods.html#tymethod.setattr">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.delattr" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1081-1093">Source</a><a href="#method.delattr" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.delattr" class="fn">delattr</a><N>(&self, attr_name: N) -> <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.unit.html">()</a>><div class="where">where
|
||
N: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py, Target = <a class="struct" href="../types/struct.PyString.html" title="struct pyo3::types::PyString">PyString</a>>,</div></h4></section></summary><div class='docblock'>Deletes an attribute. <a href="../types/trait.PyAnyMethods.html#tymethod.delattr">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.compare" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1095-1126">Source</a><a href="#method.compare" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.compare" class="fn">compare</a><O>(&self, other: O) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<a class="enum" href="https://doc.rust-lang.org/1.85.1/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a>><div class="where">where
|
||
O: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py>,</div></h4></section></summary><div class='docblock'>Returns an <a href="https://doc.rust-lang.org/1.85.1/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering"><code>Ordering</code></a> between <code>self</code> and <code>other</code>. <a href="../types/trait.PyAnyMethods.html#tymethod.compare">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.rich_compare" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1128-1149">Source</a><a href="#method.rich_compare" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.rich_compare" class="fn">rich_compare</a><O>(
|
||
&self,
|
||
other: O,
|
||
compare_op: <a class="enum" href="../pyclass/enum.CompareOp.html" title="enum pyo3::pyclass::CompareOp">CompareOp</a>,
|
||
) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<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>>><div class="where">where
|
||
O: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py>,</div></h4></section></summary><div class='docblock'>Tests whether two Python objects obey a given <a href="../pyclass/enum.CompareOp.html" title="enum pyo3::pyclass::CompareOp"><code>CompareOp</code></a>. <a href="../types/trait.PyAnyMethods.html#tymethod.rich_compare">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.neg" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1151-1153">Source</a><a href="#method.neg" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.neg" class="fn">neg</a>(&self) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<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>>></h4></section></summary><div class='docblock'>Computes the negative of self. <a href="../types/trait.PyAnyMethods.html#tymethod.neg">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.pos" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1155-1161">Source</a><a href="#method.pos" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.pos" class="fn">pos</a>(&self) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<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>>></h4></section></summary><div class='docblock'>Computes the positive of self. <a href="../types/trait.PyAnyMethods.html#tymethod.pos">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.abs" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1163-1169">Source</a><a href="#method.abs" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.abs" class="fn">abs</a>(&self) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<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>>></h4></section></summary><div class='docblock'>Computes the absolute of self. <a href="../types/trait.PyAnyMethods.html#tymethod.abs">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.bitnot" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1171-1177">Source</a><a href="#method.bitnot" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.bitnot" class="fn">bitnot</a>(&self) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<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>>></h4></section></summary><div class='docblock'>Computes <code>~self</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.lt" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1179-1185">Source</a><a href="#method.lt" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.lt" class="fn">lt</a><O>(&self, other: O) -> <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.bool.html">bool</a>><div class="where">where
|
||
O: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py>,</div></h4></section></summary><div class='docblock'>Tests whether this object is less than another. <a href="../types/trait.PyAnyMethods.html#tymethod.lt">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.le" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1187-1193">Source</a><a href="#method.le" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.le" class="fn">le</a><O>(&self, other: O) -> <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.bool.html">bool</a>><div class="where">where
|
||
O: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py>,</div></h4></section></summary><div class='docblock'>Tests whether this object is less than or equal to another. <a href="../types/trait.PyAnyMethods.html#tymethod.le">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.eq" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1195-1201">Source</a><a href="#method.eq" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.eq" class="fn">eq</a><O>(&self, other: O) -> <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.bool.html">bool</a>><div class="where">where
|
||
O: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py>,</div></h4></section></summary><div class='docblock'>Tests whether this object is equal to another. <a href="../types/trait.PyAnyMethods.html#tymethod.eq">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.ne" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1203-1209">Source</a><a href="#method.ne" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.ne" class="fn">ne</a><O>(&self, other: O) -> <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.bool.html">bool</a>><div class="where">where
|
||
O: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py>,</div></h4></section></summary><div class='docblock'>Tests whether this object is not equal to another. <a href="../types/trait.PyAnyMethods.html#tymethod.ne">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.gt" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1211-1217">Source</a><a href="#method.gt" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.gt" class="fn">gt</a><O>(&self, other: O) -> <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.bool.html">bool</a>><div class="where">where
|
||
O: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py>,</div></h4></section></summary><div class='docblock'>Tests whether this object is greater than another. <a href="../types/trait.PyAnyMethods.html#tymethod.gt">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.ge" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1219-1225">Source</a><a href="#method.ge" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.ge" class="fn">ge</a><O>(&self, other: O) -> <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.bool.html">bool</a>><div class="where">where
|
||
O: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py>,</div></h4></section></summary><div class='docblock'>Tests whether this object is greater than or equal to another. <a href="../types/trait.PyAnyMethods.html#tymethod.ge">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.is_callable" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1287-1289">Source</a><a href="#method.is_callable" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.is_callable" class="fn">is_callable</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Determines whether this object appears callable. <a href="../types/trait.PyAnyMethods.html#tymethod.is_callable">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.call" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1291-1304">Source</a><a href="#method.call" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.call" class="fn">call</a><A>(
|
||
&self,
|
||
args: A,
|
||
kwargs: <a class="enum" href="https://doc.rust-lang.org/1.85.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyDict.html" title="struct pyo3::types::PyDict">PyDict</a>>>,
|
||
) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<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>>><div class="where">where
|
||
A: <a class="trait" href="../call/trait.PyCallArgs.html" title="trait pyo3::call::PyCallArgs">PyCallArgs</a><'py>,</div></h4></section></summary><div class='docblock'>Calls the object. <a href="../types/trait.PyAnyMethods.html#tymethod.call">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.call0" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1307-1309">Source</a><a href="#method.call0" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.call0" class="fn">call0</a>(&self) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<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>>></h4></section></summary><div class='docblock'>Calls the object without arguments. <a href="../types/trait.PyAnyMethods.html#tymethod.call0">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.call1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1311-1316">Source</a><a href="#method.call1" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.call1" class="fn">call1</a><A>(&self, args: A) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<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>>><div class="where">where
|
||
A: <a class="trait" href="../call/trait.PyCallArgs.html" title="trait pyo3::call::PyCallArgs">PyCallArgs</a><'py>,</div></h4></section></summary><div class='docblock'>Calls the object with only positional arguments. <a href="../types/trait.PyAnyMethods.html#tymethod.call1">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.call_method" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1319-1335">Source</a><a href="#method.call_method" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.call_method" class="fn">call_method</a><N, A>(
|
||
&self,
|
||
name: N,
|
||
args: A,
|
||
kwargs: <a class="enum" href="https://doc.rust-lang.org/1.85.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyDict.html" title="struct pyo3::types::PyDict">PyDict</a>>>,
|
||
) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<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>>><div class="where">where
|
||
N: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py, Target = <a class="struct" href="../types/struct.PyString.html" title="struct pyo3::types::PyString">PyString</a>>,
|
||
A: <a class="trait" href="../call/trait.PyCallArgs.html" title="trait pyo3::call::PyCallArgs">PyCallArgs</a><'py>,</div></h4></section></summary><div class='docblock'>Calls a method on the object. <a href="../types/trait.PyAnyMethods.html#tymethod.call_method">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.call_method0" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1338-1348">Source</a><a href="#method.call_method0" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.call_method0" class="fn">call_method0</a><N>(&self, name: N) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<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>>><div class="where">where
|
||
N: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py, Target = <a class="struct" href="../types/struct.PyString.html" title="struct pyo3::types::PyString">PyString</a>>,</div></h4></section></summary><div class='docblock'>Calls a method on the object without arguments. <a href="../types/trait.PyAnyMethods.html#tymethod.call_method0">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.call_method1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1350-1361">Source</a><a href="#method.call_method1" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.call_method1" class="fn">call_method1</a><N, A>(&self, name: N, args: A) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<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>>><div class="where">where
|
||
N: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py, Target = <a class="struct" href="../types/struct.PyString.html" title="struct pyo3::types::PyString">PyString</a>>,
|
||
A: <a class="trait" href="../call/trait.PyCallArgs.html" title="trait pyo3::call::PyCallArgs">PyCallArgs</a><'py>,</div></h4></section></summary><div class='docblock'>Calls a method on the object with only positional arguments. <a href="../types/trait.PyAnyMethods.html#tymethod.call_method1">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.is_truthy" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1363-1367">Source</a><a href="#method.is_truthy" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.is_truthy" class="fn">is_truthy</a>(&self) -> <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.bool.html">bool</a>></h4></section></summary><div class='docblock'>Returns whether the object is considered to be true. <a href="../types/trait.PyAnyMethods.html#tymethod.is_truthy">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.is_none" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1370-1372">Source</a><a href="#method.is_none" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.is_none" class="fn">is_none</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Returns whether the object is considered to be None. <a href="../types/trait.PyAnyMethods.html#tymethod.is_none">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.is_ellipsis" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1374-1376">Source</a><a href="#method.is_ellipsis" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.is_ellipsis" class="fn">is_ellipsis</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated since 0.23.0: use <code>.is(py.Ellipsis())</code> instead</span></div></span><div class='docblock'>Returns whether the object is Ellipsis, e.g. <code>...</code>. <a href="../types/trait.PyAnyMethods.html#tymethod.is_ellipsis">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.is_empty" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1378-1380">Source</a><a href="#method.is_empty" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.is_empty" class="fn">is_empty</a>(&self) -> <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.bool.html">bool</a>></h4></section></summary><div class='docblock'>Returns true if the sequence or mapping has a length of 0. <a href="../types/trait.PyAnyMethods.html#tymethod.is_empty">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.get_item" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1382-1400">Source</a><a href="#method.get_item" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.get_item" class="fn">get_item</a><K>(&self, key: K) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<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>>><div class="where">where
|
||
K: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py>,</div></h4></section></summary><div class='docblock'>Gets an item from the collection. <a href="../types/trait.PyAnyMethods.html#tymethod.get_item">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.set_item" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1402-1423">Source</a><a href="#method.set_item" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.set_item" class="fn">set_item</a><K, V>(&self, key: K, value: V) -> <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.unit.html">()</a>><div class="where">where
|
||
K: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py>,
|
||
V: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py>,</div></h4></section></summary><div class='docblock'>Sets a collection item value. <a href="../types/trait.PyAnyMethods.html#tymethod.set_item">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.del_item" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1425-1440">Source</a><a href="#method.del_item" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.del_item" class="fn">del_item</a><K>(&self, key: K) -> <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.unit.html">()</a>><div class="where">where
|
||
K: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py>,</div></h4></section></summary><div class='docblock'>Deletes an item from the collection. <a href="../types/trait.PyAnyMethods.html#tymethod.del_item">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.try_iter" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1442-1444">Source</a><a href="#method.try_iter" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.try_iter" class="fn">try_iter</a>(&self) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyIterator.html" title="struct pyo3::types::PyIterator">PyIterator</a>>></h4></section></summary><div class='docblock'>Takes an object and returns an iterator for it. Returns an error if the object is not
|
||
iterable. <a href="../types/trait.PyAnyMethods.html#tymethod.try_iter">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.iter" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1446-1448">Source</a><a href="#method.iter" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.iter" class="fn">iter</a>(&self) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyIterator.html" title="struct pyo3::types::PyIterator">PyIterator</a>>></h4></section></summary><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated since 0.23.0: use <code>try_iter</code> instead</span></div></span><div class='docblock'>Takes an object and returns an iterator for it. <a href="../types/trait.PyAnyMethods.html#tymethod.iter">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.get_type" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1450-1452">Source</a><a href="#method.get_type" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.get_type" class="fn">get_type</a>(&self) -> <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyType.html" title="struct pyo3::types::PyType">PyType</a>></h4></section></summary><div class='docblock'>Returns the Python type object for this object’s type.</div></details><details class="toggle method-toggle" open><summary><section id="method.get_type_ptr" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1455-1457">Source</a><a href="#method.get_type_ptr" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.get_type_ptr" class="fn">get_type_ptr</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.pointer.html">*mut </a><a class="struct" href="../ffi/struct.PyTypeObject.html" title="struct pyo3::ffi::PyTypeObject">PyTypeObject</a></h4></section></summary><div class='docblock'>Returns the Python type pointer for this object.</div></details><details class="toggle method-toggle" open><summary><section id="method.downcast" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1460-1470">Source</a><a href="#method.downcast" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.downcast" class="fn">downcast</a><T>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.85.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><&<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, T>, <a class="struct" href="../struct.DowncastError.html" title="struct pyo3::DowncastError">DowncastError</a><'_, 'py>><div class="where">where
|
||
T: <a class="trait" href="../type_object/trait.PyTypeCheck.html" title="trait pyo3::type_object::PyTypeCheck">PyTypeCheck</a>,</div></h4></section></summary><div class='docblock'>Downcast this <code>PyAny</code> to a concrete Python type or pyclass. <a href="../types/trait.PyAnyMethods.html#tymethod.downcast">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.downcast_into" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1473-1483">Source</a><a href="#method.downcast_into" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.downcast_into" class="fn">downcast_into</a><T>(self) -> <a class="enum" href="https://doc.rust-lang.org/1.85.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, T>, <a class="struct" href="../struct.DowncastIntoError.html" title="struct pyo3::DowncastIntoError">DowncastIntoError</a><'py>><div class="where">where
|
||
T: <a class="trait" href="../type_object/trait.PyTypeCheck.html" title="trait pyo3::type_object::PyTypeCheck">PyTypeCheck</a>,</div></h4></section></summary><div class='docblock'>Like <code>downcast</code> but takes ownership of <code>self</code>. <a href="../types/trait.PyAnyMethods.html#tymethod.downcast_into">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.downcast_exact" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1486-1496">Source</a><a href="#method.downcast_exact" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.downcast_exact" class="fn">downcast_exact</a><T>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.85.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><&<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, T>, <a class="struct" href="../struct.DowncastError.html" title="struct pyo3::DowncastError">DowncastError</a><'_, 'py>><div class="where">where
|
||
T: <a class="trait" href="../type_object/trait.PyTypeInfo.html" title="trait pyo3::type_object::PyTypeInfo">PyTypeInfo</a>,</div></h4></section></summary><div class='docblock'>Downcast this <code>PyAny</code> to a concrete Python type or pyclass (but not a subclass of it). <a href="../types/trait.PyAnyMethods.html#tymethod.downcast_exact">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.downcast_into_exact" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1499-1509">Source</a><a href="#method.downcast_into_exact" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.downcast_into_exact" class="fn">downcast_into_exact</a><T>(self) -> <a class="enum" href="https://doc.rust-lang.org/1.85.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, T>, <a class="struct" href="../struct.DowncastIntoError.html" title="struct pyo3::DowncastIntoError">DowncastIntoError</a><'py>><div class="where">where
|
||
T: <a class="trait" href="../type_object/trait.PyTypeInfo.html" title="trait pyo3::type_object::PyTypeInfo">PyTypeInfo</a>,</div></h4></section></summary><div class='docblock'>Like <code>downcast_exact</code> but takes ownership of <code>self</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.downcast_unchecked" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1512-1514">Source</a><a href="#method.downcast_unchecked" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="../types/trait.PyAnyMethods.html#tymethod.downcast_unchecked" class="fn">downcast_unchecked</a><T>(&self) -> &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, T></h4></section></summary><div class='docblock'>Converts this <code>PyAny</code> to a concrete Python type without checking validity. <a href="../types/trait.PyAnyMethods.html#tymethod.downcast_unchecked">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.downcast_into_unchecked" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1517-1519">Source</a><a href="#method.downcast_into_unchecked" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="../types/trait.PyAnyMethods.html#tymethod.downcast_into_unchecked" class="fn">downcast_into_unchecked</a><T>(self) -> <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, T></h4></section></summary><div class='docblock'>Like <code>downcast_unchecked</code> but takes ownership of <code>self</code>. <a href="../types/trait.PyAnyMethods.html#tymethod.downcast_into_unchecked">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.extract" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1521-1526">Source</a><a href="#method.extract" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.extract" class="fn">extract</a><'a, T>(&'a self) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><T><div class="where">where
|
||
T: <a class="trait" href="../conversion/trait.FromPyObjectBound.html" title="trait pyo3::conversion::FromPyObjectBound">FromPyObjectBound</a><'a, 'py>,</div></h4></section></summary><div class='docblock'>Extracts some type from the Python object. <a href="../types/trait.PyAnyMethods.html#tymethod.extract">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.get_refcnt" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1528-1530">Source</a><a href="#method.get_refcnt" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.get_refcnt" class="fn">get_refcnt</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.isize.html">isize</a></h4></section></summary><div class='docblock'>Returns the reference count for the Python object.</div></details><details class="toggle method-toggle" open><summary><section id="method.repr" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1532-1538">Source</a><a href="#method.repr" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.repr" class="fn">repr</a>(&self) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyString.html" title="struct pyo3::types::PyString">PyString</a>>></h4></section></summary><div class='docblock'>Computes the “repr” representation of self. <a href="../types/trait.PyAnyMethods.html#tymethod.repr">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.str" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1540-1546">Source</a><a href="#method.str" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.str" class="fn">str</a>(&self) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyString.html" title="struct pyo3::types::PyString">PyString</a>>></h4></section></summary><div class='docblock'>Computes the “str” representation of self. <a href="../types/trait.PyAnyMethods.html#tymethod.str">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.hash" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1548-1552">Source</a><a href="#method.hash" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.hash" class="fn">hash</a>(&self) -> <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.isize.html">isize</a>></h4></section></summary><div class='docblock'>Retrieves the hash code of self. <a href="../types/trait.PyAnyMethods.html#tymethod.hash">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.len" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1554-1558">Source</a><a href="#method.len" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.len" class="fn">len</a>(&self) -> <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.usize.html">usize</a>></h4></section></summary><div class='docblock'>Returns the length of the sequence or mapping. <a href="../types/trait.PyAnyMethods.html#tymethod.len">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.dir" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1560-1566">Source</a><a href="#method.dir" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.dir" class="fn">dir</a>(&self) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyList.html" title="struct pyo3::types::PyList">PyList</a>>></h4></section></summary><div class='docblock'>Returns the list of attributes of this object. <a href="../types/trait.PyAnyMethods.html#tymethod.dir">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.is_instance" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1569-1573">Source</a><a href="#method.is_instance" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.is_instance" class="fn">is_instance</a>(&self, ty: &<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><<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a>></h4></section></summary><div class='docblock'>Checks whether this object is an instance of type <code>ty</code>. <a href="../types/trait.PyAnyMethods.html#tymethod.is_instance">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.is_exact_instance" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1576-1578">Source</a><a href="#method.is_exact_instance" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.is_exact_instance" class="fn">is_exact_instance</a>(&self, ty: &<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="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Checks whether this object is an instance of exactly type <code>ty</code> (not a subclass). <a href="../types/trait.PyAnyMethods.html#tymethod.is_exact_instance">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.is_instance_of" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1581-1583">Source</a><a href="#method.is_instance_of" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.is_instance_of" class="fn">is_instance_of</a><T: <a class="trait" href="../type_object/trait.PyTypeInfo.html" title="trait pyo3::type_object::PyTypeInfo">PyTypeInfo</a>>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Checks whether this object is an instance of type <code>T</code>. <a href="../types/trait.PyAnyMethods.html#tymethod.is_instance_of">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.is_exact_instance_of" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1586-1588">Source</a><a href="#method.is_exact_instance_of" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.is_exact_instance_of" class="fn">is_exact_instance_of</a><T: <a class="trait" href="../type_object/trait.PyTypeInfo.html" title="trait pyo3::type_object::PyTypeInfo">PyTypeInfo</a>>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Checks whether this object is an instance of exactly type <code>T</code>. <a href="../types/trait.PyAnyMethods.html#tymethod.is_exact_instance_of">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.contains" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1590-1607">Source</a><a href="#method.contains" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.contains" class="fn">contains</a><V>(&self, value: V) -> <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.bool.html">bool</a>><div class="where">where
|
||
V: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py>,</div></h4></section></summary><div class='docblock'>Determines if self contains <code>value</code>. <a href="../types/trait.PyAnyMethods.html#tymethod.contains">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.py_super" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/any.rs.html#1610-1612">Source</a><a href="#method.py_super" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyAnyMethods.html#tymethod.py_super" class="fn">py_super</a>(&self) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PySuper.html" title="struct pyo3::types::PySuper">PySuper</a>>></h4></section></summary><div class='docblock'>Return a proxy object that delegates method calls to a parent or sibling class of type. <a href="../types/trait.PyAnyMethods.html#tymethod.py_super">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PyBoolMethods%3C'py%3E-for-Bound%3C'py,+PyBool%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/boolobject.rs.html#61-66">Source</a><a href="#impl-PyBoolMethods%3C'py%3E-for-Bound%3C'py,+PyBool%3E" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="../types/trait.PyBoolMethods.html" title="trait pyo3::types::PyBoolMethods">PyBoolMethods</a><'py> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyBool.html" title="struct pyo3::types::PyBool">PyBool</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.is_true" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/boolobject.rs.html#63-65">Source</a><a href="#method.is_true" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyBoolMethods.html#tymethod.is_true" class="fn">is_true</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Gets whether this boolean is <code>true</code>.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PyByteArrayMethods%3C'py%3E-for-Bound%3C'py,+PyByteArray%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/bytearray.rs.html#273-311">Source</a><a href="#impl-PyByteArrayMethods%3C'py%3E-for-Bound%3C'py,+PyByteArray%3E" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="../types/trait.PyByteArrayMethods.html" title="trait pyo3::types::PyByteArrayMethods">PyByteArrayMethods</a><'py> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyByteArray.html" title="struct pyo3::types::PyByteArray">PyByteArray</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.len-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/bytearray.rs.html#275-278">Source</a><a href="#method.len-1" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyByteArrayMethods.html#tymethod.len" class="fn">len</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.usize.html">usize</a></h4></section></summary><div class='docblock'>Gets the length of the bytearray.</div></details><details class="toggle method-toggle" open><summary><section id="method.is_empty-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/bytearray.rs.html#280-282">Source</a><a href="#method.is_empty-1" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyByteArrayMethods.html#tymethod.is_empty" class="fn">is_empty</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Checks if the bytearray is empty.</div></details><details class="toggle method-toggle" open><summary><section id="method.data" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/bytearray.rs.html#284-286">Source</a><a href="#method.data" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyByteArrayMethods.html#tymethod.data" class="fn">data</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.pointer.html">*mut </a><a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.u8.html">u8</a></h4></section></summary><div class='docblock'>Gets the start of the buffer containing the contents of the bytearray. <a href="../types/trait.PyByteArrayMethods.html#tymethod.data">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.as_bytes" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/bytearray.rs.html#288-290">Source</a><a href="#method.as_bytes" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="../types/trait.PyByteArrayMethods.html#tymethod.as_bytes" class="fn">as_bytes</a>(&self) -> &[<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.u8.html">u8</a>] <a href="#" class="tooltip" data-notable-ty="&[u8]">ⓘ</a></h4></section></summary><div class='docblock'>Extracts a slice of the <code>ByteArray</code>’s entire buffer. <a href="../types/trait.PyByteArrayMethods.html#tymethod.as_bytes">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.as_bytes_mut" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/bytearray.rs.html#293-295">Source</a><a href="#method.as_bytes_mut" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="../types/trait.PyByteArrayMethods.html#tymethod.as_bytes_mut" class="fn">as_bytes_mut</a>(&self) -> &mut [<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.u8.html">u8</a>] <a href="#" class="tooltip" data-notable-ty="&mut [u8]">ⓘ</a></h4></section></summary><div class='docblock'>Extracts a mutable slice of the <code>ByteArray</code>’s entire buffer. <a href="../types/trait.PyByteArrayMethods.html#tymethod.as_bytes_mut">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.to_vec" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/bytearray.rs.html#297-299">Source</a><a href="#method.to_vec" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyByteArrayMethods.html#tymethod.to_vec" class="fn">to_vec</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.85.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.u8.html">u8</a>> <a href="#" class="tooltip" data-notable-ty="Vec<u8>">ⓘ</a></h4></section></summary><div class='docblock'>Copies the contents of the bytearray to a Rust vector. <a href="../types/trait.PyByteArrayMethods.html#tymethod.to_vec">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.resize" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/bytearray.rs.html#301-310">Source</a><a href="#method.resize" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyByteArrayMethods.html#tymethod.resize" class="fn">resize</a>(&self, len: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.usize.html">usize</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.unit.html">()</a>></h4></section></summary><div class='docblock'>Resizes the bytearray object to the new length <code>len</code>. <a href="../types/trait.PyByteArrayMethods.html#tymethod.resize">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PyBytesMethods%3C'py%3E-for-Bound%3C'py,+PyBytes%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/bytes.rs.html#171-176">Source</a><a href="#impl-PyBytesMethods%3C'py%3E-for-Bound%3C'py,+PyBytes%3E" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="../types/trait.PyBytesMethods.html" title="trait pyo3::types::PyBytesMethods">PyBytesMethods</a><'py> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyBytes.html" title="struct pyo3::types::PyBytes">PyBytes</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_bytes-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/bytes.rs.html#173-175">Source</a><a href="#method.as_bytes-1" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyBytesMethods.html#tymethod.as_bytes" class="fn">as_bytes</a>(&self) -> &[<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.u8.html">u8</a>] <a href="#" class="tooltip" data-notable-ty="&[u8]">ⓘ</a></h4></section></summary><div class='docblock'>Gets the Python string as a byte slice.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PyCapsuleMethods%3C'py%3E-for-Bound%3C'py,+PyCapsule%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/capsule.rs.html#250-302">Source</a><a href="#impl-PyCapsuleMethods%3C'py%3E-for-Bound%3C'py,+PyCapsule%3E" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="../types/trait.PyCapsuleMethods.html" title="trait pyo3::types::PyCapsuleMethods">PyCapsuleMethods</a><'py> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyCapsule.html" title="struct pyo3::types::PyCapsule">PyCapsule</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.set_context" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/capsule.rs.html#252-259">Source</a><a href="#method.set_context" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyCapsuleMethods.html#tymethod.set_context" class="fn">set_context</a>(&self, context: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.pointer.html">*mut </a><a class="type" href="https://doc.rust-lang.org/1.85.1/std/os/raw/type.c_void.html" title="type std::os::raw::c_void">c_void</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.unit.html">()</a>></h4></section></summary><div class='docblock'>Sets the context pointer in the capsule. <a href="../types/trait.PyCapsuleMethods.html#tymethod.set_context">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.context" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/capsule.rs.html#261-267">Source</a><a href="#method.context" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyCapsuleMethods.html#tymethod.context" class="fn">context</a>(&self) -> <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.pointer.html">*mut </a><a class="type" href="https://doc.rust-lang.org/1.85.1/std/os/raw/type.c_void.html" title="type std::os::raw::c_void">c_void</a>></h4></section></summary><div class='docblock'>Gets the current context stored in the capsule. If there is no context, the pointer
|
||
will be null. <a href="../types/trait.PyCapsuleMethods.html#tymethod.context">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.reference" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/capsule.rs.html#269-271">Source</a><a href="#method.reference" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="../types/trait.PyCapsuleMethods.html#tymethod.reference" class="fn">reference</a><T>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&'py T</a></h4></section></summary><div class='docblock'>Obtains a reference to the value of this capsule. <a href="../types/trait.PyCapsuleMethods.html#tymethod.reference">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.pointer" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/capsule.rs.html#273-281">Source</a><a href="#method.pointer" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyCapsuleMethods.html#tymethod.pointer" class="fn">pointer</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.pointer.html">*mut </a><a class="type" href="https://doc.rust-lang.org/1.85.1/std/os/raw/type.c_void.html" title="type std::os::raw::c_void">c_void</a></h4></section></summary><div class='docblock'>Gets the raw <code>c_void</code> pointer to the value in this capsule. <a href="../types/trait.PyCapsuleMethods.html#tymethod.pointer">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.is_valid" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/capsule.rs.html#283-289">Source</a><a href="#method.is_valid" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyCapsuleMethods.html#tymethod.is_valid" class="fn">is_valid</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Checks if this is a valid capsule. <a href="../types/trait.PyCapsuleMethods.html#tymethod.is_valid">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.name" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/capsule.rs.html#291-301">Source</a><a href="#method.name" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyCapsuleMethods.html#tymethod.name" class="fn">name</a>(&self) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<a class="enum" href="https://doc.rust-lang.org/1.85.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&'py <a class="struct" href="https://doc.rust-lang.org/1.85.1/core/ffi/c_str/struct.CStr.html" title="struct core::ffi::c_str::CStr">CStr</a>>></h4></section></summary><div class='docblock'>Retrieves the name of this capsule, if set. <a href="../types/trait.PyCapsuleMethods.html#tymethod.name">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PyComplexMethods%3C'py%3E-for-Bound%3C'py,+PyComplex%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/complex.rs.html#233-259">Source</a><a href="#impl-PyComplexMethods%3C'py%3E-for-Bound%3C'py,+PyComplex%3E" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="../types/trait.PyComplexMethods.html" title="trait pyo3::types::PyComplexMethods">PyComplexMethods</a><'py> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.real" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/complex.rs.html#234-236">Source</a><a href="#method.real" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyComplexMethods.html#tymethod.real" class="fn">real</a>(&self) -> <a class="type" href="https://doc.rust-lang.org/1.85.1/std/os/raw/type.c_double.html" title="type std::os::raw::c_double">c_double</a></h4></section></summary><div class='docblock'>Returns the real part of the complex number.</div></details><details class="toggle method-toggle" open><summary><section id="method.imag" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/complex.rs.html#238-240">Source</a><a href="#method.imag" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyComplexMethods.html#tymethod.imag" class="fn">imag</a>(&self) -> <a class="type" href="https://doc.rust-lang.org/1.85.1/std/os/raw/type.c_double.html" title="type std::os::raw::c_double">c_double</a></h4></section></summary><div class='docblock'>Returns the imaginary part of the complex number.</div></details><details class="toggle method-toggle" open><summary><section id="method.abs-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/complex.rs.html#243-249">Source</a><a href="#method.abs-1" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyComplexMethods.html#tymethod.abs" class="fn">abs</a>(&self) -> <a class="type" href="https://doc.rust-lang.org/1.85.1/std/os/raw/type.c_double.html" title="type std::os::raw::c_double">c_double</a></h4></section></summary><div class='docblock'>Returns <code>|self|</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.pow-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/complex.rs.html#252-258">Source</a><a href="#method.pow-1" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyComplexMethods.html#tymethod.pow" class="fn">pow</a>(&self, other: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>>) -> <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>></h4></section></summary><div class='docblock'>Returns <code>self</code> raised to the power of <code>other</code>.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PyDateAccess-for-Bound%3C'_,+PyDate%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/datetime.rs.html#246-258">Source</a><a href="#impl-PyDateAccess-for-Bound%3C'_,+PyDate%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../types/trait.PyDateAccess.html" title="trait pyo3::types::PyDateAccess">PyDateAccess</a> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyDate.html" title="struct pyo3::types::PyDate">PyDate</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.get_year" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/datetime.rs.html#247-249">Source</a><a href="#method.get_year" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyDateAccess.html#tymethod.get_year" class="fn">get_year</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.i32.html">i32</a></h4></section></summary><div class='docblock'>Returns the year, as a positive int. <a href="../types/trait.PyDateAccess.html#tymethod.get_year">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.get_month" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/datetime.rs.html#251-253">Source</a><a href="#method.get_month" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyDateAccess.html#tymethod.get_month" class="fn">get_month</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.u8.html">u8</a></h4></section></summary><div class='docblock'>Returns the month, as an int from 1 through 12. <a href="../types/trait.PyDateAccess.html#tymethod.get_month">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.get_day" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/datetime.rs.html#255-257">Source</a><a href="#method.get_day" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyDateAccess.html#tymethod.get_day" class="fn">get_day</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.u8.html">u8</a></h4></section></summary><div class='docblock'>Returns the day, as an int from 1 through 31. <a href="../types/trait.PyDateAccess.html#tymethod.get_day">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PyDateAccess-for-Bound%3C'_,+PyDateTime%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/datetime.rs.html#436-448">Source</a><a href="#impl-PyDateAccess-for-Bound%3C'_,+PyDateTime%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../types/trait.PyDateAccess.html" title="trait pyo3::types::PyDateAccess">PyDateAccess</a> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyDateTime.html" title="struct pyo3::types::PyDateTime">PyDateTime</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.get_year-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/datetime.rs.html#437-439">Source</a><a href="#method.get_year-1" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyDateAccess.html#tymethod.get_year" class="fn">get_year</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.i32.html">i32</a></h4></section></summary><div class='docblock'>Returns the year, as a positive int. <a href="../types/trait.PyDateAccess.html#tymethod.get_year">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.get_month-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/datetime.rs.html#441-443">Source</a><a href="#method.get_month-1" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyDateAccess.html#tymethod.get_month" class="fn">get_month</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.u8.html">u8</a></h4></section></summary><div class='docblock'>Returns the month, as an int from 1 through 12. <a href="../types/trait.PyDateAccess.html#tymethod.get_month">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.get_day-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/datetime.rs.html#445-447">Source</a><a href="#method.get_day-1" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyDateAccess.html#tymethod.get_day" class="fn">get_day</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.u8.html">u8</a></h4></section></summary><div class='docblock'>Returns the day, as an int from 1 through 31. <a href="../types/trait.PyDateAccess.html#tymethod.get_day">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PyDeltaAccess-for-Bound%3C'_,+PyDelta%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/datetime.rs.html#766-778">Source</a><a href="#impl-PyDeltaAccess-for-Bound%3C'_,+PyDelta%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../types/trait.PyDeltaAccess.html" title="trait pyo3::types::PyDeltaAccess">PyDeltaAccess</a> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyDelta.html" title="struct pyo3::types::PyDelta">PyDelta</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.get_days" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/datetime.rs.html#767-769">Source</a><a href="#method.get_days" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyDeltaAccess.html#tymethod.get_days" class="fn">get_days</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.i32.html">i32</a></h4></section></summary><div class='docblock'>Returns the number of days, as an int from -999999999 to 999999999. <a href="../types/trait.PyDeltaAccess.html#tymethod.get_days">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.get_seconds" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/datetime.rs.html#771-773">Source</a><a href="#method.get_seconds" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyDeltaAccess.html#tymethod.get_seconds" class="fn">get_seconds</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.i32.html">i32</a></h4></section></summary><div class='docblock'>Returns the number of seconds, as an int from 0 through 86399. <a href="../types/trait.PyDeltaAccess.html#tymethod.get_seconds">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.get_microseconds" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/datetime.rs.html#775-777">Source</a><a href="#method.get_microseconds" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyDeltaAccess.html#tymethod.get_microseconds" class="fn">get_microseconds</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.i32.html">i32</a></h4></section></summary><div class='docblock'>Returns the number of microseconds, as an int from 0 through 999999. <a href="../types/trait.PyDeltaAccess.html#tymethod.get_microseconds">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PyDictMethods%3C'py%3E-for-Bound%3C'py,+PyDict%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/dict.rs.html#218-394">Source</a><a href="#impl-PyDictMethods%3C'py%3E-for-Bound%3C'py,+PyDict%3E" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="../types/trait.PyDictMethods.html" title="trait pyo3::types::PyDictMethods">PyDictMethods</a><'py> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyDict.html" title="struct pyo3::types::PyDict">PyDict</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.copy" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/dict.rs.html#219-225">Source</a><a href="#method.copy" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyDictMethods.html#tymethod.copy" class="fn">copy</a>(&self) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyDict.html" title="struct pyo3::types::PyDict">PyDict</a>>></h4></section></summary><div class='docblock'>Returns a new dictionary that contains the same key-value pairs as self. <a href="../types/trait.PyDictMethods.html#tymethod.copy">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clear" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/dict.rs.html#227-229">Source</a><a href="#method.clear" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyDictMethods.html#tymethod.clear" class="fn">clear</a>(&self)</h4></section></summary><div class='docblock'>Empties an existing dictionary of all key-value pairs.</div></details><details class="toggle method-toggle" open><summary><section id="method.len-2" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/dict.rs.html#231-233">Source</a><a href="#method.len-2" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyDictMethods.html#tymethod.len" class="fn">len</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.usize.html">usize</a></h4></section></summary><div class='docblock'>Return the number of items in the dictionary. <a href="../types/trait.PyDictMethods.html#tymethod.len">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.is_empty-2" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/dict.rs.html#235-237">Source</a><a href="#method.is_empty-2" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyDictMethods.html#tymethod.is_empty" class="fn">is_empty</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Checks if the dict is empty, i.e. <code>len(self) == 0</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.contains-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/dict.rs.html#239-256">Source</a><a href="#method.contains-1" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyDictMethods.html#tymethod.contains" class="fn">contains</a><K>(&self, key: K) -> <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.bool.html">bool</a>><div class="where">where
|
||
K: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py>,</div></h4></section></summary><div class='docblock'>Determines if the dictionary contains the specified key. <a href="../types/trait.PyDictMethods.html#tymethod.contains">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.get_item-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/dict.rs.html#258-286">Source</a><a href="#method.get_item-1" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyDictMethods.html#tymethod.get_item" class="fn">get_item</a><K>(&self, key: K) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<a class="enum" href="https://doc.rust-lang.org/1.85.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<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>>>><div class="where">where
|
||
K: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py>,</div></h4></section></summary><div class='docblock'>Gets an item from the dictionary. <a href="../types/trait.PyDictMethods.html#tymethod.get_item">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.set_item-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/dict.rs.html#288-309">Source</a><a href="#method.set_item-1" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyDictMethods.html#tymethod.set_item" class="fn">set_item</a><K, V>(&self, key: K, value: V) -> <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.unit.html">()</a>><div class="where">where
|
||
K: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py>,
|
||
V: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py>,</div></h4></section></summary><div class='docblock'>Sets an item value. <a href="../types/trait.PyDictMethods.html#tymethod.set_item">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.del_item-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/dict.rs.html#311-326">Source</a><a href="#method.del_item-1" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyDictMethods.html#tymethod.del_item" class="fn">del_item</a><K>(&self, key: K) -> <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.unit.html">()</a>><div class="where">where
|
||
K: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py>,</div></h4></section></summary><div class='docblock'>Deletes an item. <a href="../types/trait.PyDictMethods.html#tymethod.del_item">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.keys" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/dict.rs.html#328-334">Source</a><a href="#method.keys" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyDictMethods.html#tymethod.keys" class="fn">keys</a>(&self) -> <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyList.html" title="struct pyo3::types::PyList">PyList</a>></h4></section></summary><div class='docblock'>Returns a list of dict keys. <a href="../types/trait.PyDictMethods.html#tymethod.keys">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.values" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/dict.rs.html#336-342">Source</a><a href="#method.values" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyDictMethods.html#tymethod.values" class="fn">values</a>(&self) -> <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyList.html" title="struct pyo3::types::PyList">PyList</a>></h4></section></summary><div class='docblock'>Returns a list of dict values. <a href="../types/trait.PyDictMethods.html#tymethod.values">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.items" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/dict.rs.html#344-350">Source</a><a href="#method.items" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyDictMethods.html#tymethod.items" class="fn">items</a>(&self) -> <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyList.html" title="struct pyo3::types::PyList">PyList</a>></h4></section></summary><div class='docblock'>Returns a list of dict items. <a href="../types/trait.PyDictMethods.html#tymethod.items">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.iter-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/dict.rs.html#352-354">Source</a><a href="#method.iter-1" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyDictMethods.html#tymethod.iter" class="fn">iter</a>(&self) -> <a class="struct" href="../types/iter/struct.BoundDictIterator.html" title="struct pyo3::types::iter::BoundDictIterator">BoundDictIterator</a><'py> <a href="#" class="tooltip" data-notable-ty="BoundDictIterator<'py>">ⓘ</a></h4></section></summary><div class='docblock'>Returns an iterator of <code>(key, value)</code> pairs in this dictionary. <a href="../types/trait.PyDictMethods.html#tymethod.iter">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.locked_for_each" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/dict.rs.html#356-373">Source</a><a href="#method.locked_for_each" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyDictMethods.html#tymethod.locked_for_each" class="fn">locked_for_each</a><F>(&self, f: F) -> <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.unit.html">()</a>><div class="where">where
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(<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="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><<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.unit.html">()</a>>,</div></h4></section></summary><div class='docblock'>Iterates over the contents of this dictionary while holding a critical section on the dict.
|
||
This is useful when the GIL is disabled and the dictionary is shared between threads.
|
||
It is not guaranteed that the dictionary will not be modified during iteration when the
|
||
closure calls arbitrary Python code that releases the critical section held by the
|
||
iterator. Otherwise, the dictionary will not be modified during iteration. <a href="../types/trait.PyDictMethods.html#tymethod.locked_for_each">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.as_mapping" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/dict.rs.html#375-377">Source</a><a href="#method.as_mapping" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyDictMethods.html#tymethod.as_mapping" class="fn">as_mapping</a>(&self) -> &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyMapping.html" title="struct pyo3::types::PyMapping">PyMapping</a>></h4></section></summary><div class='docblock'>Returns <code>self</code> cast as a <code>PyMapping</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.into_mapping" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/dict.rs.html#379-381">Source</a><a href="#method.into_mapping" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyDictMethods.html#tymethod.into_mapping" class="fn">into_mapping</a>(self) -> <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyMapping.html" title="struct pyo3::types::PyMapping">PyMapping</a>></h4></section></summary><div class='docblock'>Returns <code>self</code> cast as a <code>PyMapping</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.update" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/dict.rs.html#383-387">Source</a><a href="#method.update" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyDictMethods.html#tymethod.update" class="fn">update</a>(&self, other: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyMapping.html" title="struct pyo3::types::PyMapping">PyMapping</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.unit.html">()</a>></h4></section></summary><div class='docblock'>Update this dictionary with the key/value pairs from another. <a href="../types/trait.PyDictMethods.html#tymethod.update">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.update_if_missing" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/dict.rs.html#389-393">Source</a><a href="#method.update_if_missing" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyDictMethods.html#tymethod.update_if_missing" class="fn">update_if_missing</a>(&self, other: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyMapping.html" title="struct pyo3::types::PyMapping">PyMapping</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.unit.html">()</a>></h4></section></summary><div class='docblock'>Add key/value pairs from another dictionary to this one only when they do not exist in this. <a href="../types/trait.PyDictMethods.html#tymethod.update_if_missing">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PyFloatMethods%3C'py%3E-for-Bound%3C'py,+PyFloat%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/float.rs.html#66-79">Source</a><a href="#impl-PyFloatMethods%3C'py%3E-for-Bound%3C'py,+PyFloat%3E" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="../types/trait.PyFloatMethods.html" title="trait pyo3::types::PyFloatMethods">PyFloatMethods</a><'py> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyFloat.html" title="struct pyo3::types::PyFloat">PyFloat</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.value" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/float.rs.html#67-78">Source</a><a href="#method.value" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyFloatMethods.html#tymethod.value" class="fn">value</a>(&self) -> <a class="type" href="https://doc.rust-lang.org/1.85.1/std/os/raw/type.c_double.html" title="type std::os::raw::c_double">c_double</a></h4></section></summary><div class='docblock'>Gets the value of this float.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PyFrozenSetMethods%3C'py%3E-for-Bound%3C'py,+PyFrozenSet%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/frozenset.rs.html#159-190">Source</a><a href="#impl-PyFrozenSetMethods%3C'py%3E-for-Bound%3C'py,+PyFrozenSet%3E" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="../types/trait.PyFrozenSetMethods.html" title="trait pyo3::types::PyFrozenSetMethods">PyFrozenSetMethods</a><'py> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyFrozenSet.html" title="struct pyo3::types::PyFrozenSet">PyFrozenSet</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.len-3" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/frozenset.rs.html#161-163">Source</a><a href="#method.len-3" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyFrozenSetMethods.html#tymethod.len" class="fn">len</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.usize.html">usize</a></h4></section></summary><div class='docblock'>Returns the number of items in the set. <a href="../types/trait.PyFrozenSetMethods.html#tymethod.len">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.contains-2" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/frozenset.rs.html#165-185">Source</a><a href="#method.contains-2" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyFrozenSetMethods.html#tymethod.contains" class="fn">contains</a><K>(&self, key: K) -> <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.bool.html">bool</a>><div class="where">where
|
||
K: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py>,</div></h4></section></summary><div class='docblock'>Determines if the set contains the specified key. <a href="../types/trait.PyFrozenSetMethods.html#tymethod.contains">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.iter-2" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/frozenset.rs.html#187-189">Source</a><a href="#method.iter-2" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyFrozenSetMethods.html#tymethod.iter" class="fn">iter</a>(&self) -> <a class="struct" href="../types/iter/struct.BoundFrozenSetIterator.html" title="struct pyo3::types::iter::BoundFrozenSetIterator">BoundFrozenSetIterator</a><'py> <a href="#" class="tooltip" data-notable-ty="BoundFrozenSetIterator<'py>">ⓘ</a></h4></section></summary><div class='docblock'>Returns an iterator of values in this set.</div></details><details class="toggle method-toggle" open><summary><section id="method.is_empty-3" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/frozenset.rs.html#144-146">Source</a><a href="#method.is_empty-3" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyFrozenSetMethods.html#method.is_empty" class="fn">is_empty</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Checks if set is empty.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PyListMethods%3C'py%3E-for-Bound%3C'py,+PyList%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/list.rs.html#267-486">Source</a><a href="#impl-PyListMethods%3C'py%3E-for-Bound%3C'py,+PyList%3E" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="../types/trait.PyListMethods.html" title="trait pyo3::types::PyListMethods">PyListMethods</a><'py> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyList.html" title="struct pyo3::types::PyList">PyList</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.len-4" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/list.rs.html#269-279">Source</a><a href="#method.len-4" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyListMethods.html#tymethod.len" class="fn">len</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.usize.html">usize</a></h4></section></summary><div class="docblock"><p>Returns the length of the list.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_empty-4" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/list.rs.html#282-284">Source</a><a href="#method.is_empty-4" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyListMethods.html#tymethod.is_empty" class="fn">is_empty</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Checks if the list is empty.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.as_sequence" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/list.rs.html#287-289">Source</a><a href="#method.as_sequence" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyListMethods.html#tymethod.as_sequence" class="fn">as_sequence</a>(&self) -> &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PySequence.html" title="struct pyo3::types::PySequence">PySequence</a>></h4></section></summary><div class="docblock"><p>Returns <code>self</code> cast as a <code>PySequence</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.into_sequence" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/list.rs.html#292-294">Source</a><a href="#method.into_sequence" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyListMethods.html#tymethod.into_sequence" class="fn">into_sequence</a>(self) -> <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PySequence.html" title="struct pyo3::types::PySequence">PySequence</a>></h4></section></summary><div class="docblock"><p>Returns <code>self</code> cast as a <code>PySequence</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.get_item-2" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/list.rs.html#306-311">Source</a><a href="#method.get_item-2" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyListMethods.html#tymethod.get_item" class="fn">get_item</a>(&self, index: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.usize.html">usize</a>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<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>>></h4></section></summary><div class="docblock"><p>Gets the list item at the specified index.</p>
|
||
<h5 id="example"><a class="doc-anchor" href="#example">§</a>Example</h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>pyo3::{prelude::<span class="kw-2">*</span>, types::PyList};
|
||
Python::with_gil(|py| {
|
||
<span class="kw">let </span>list = PyList::new(py, [<span class="number">2</span>, <span class="number">3</span>, <span class="number">5</span>, <span class="number">7</span>]).unwrap();
|
||
<span class="kw">let </span>obj = list.get_item(<span class="number">0</span>);
|
||
<span class="macro">assert_eq!</span>(obj.unwrap().extract::<i32>().unwrap(), <span class="number">2</span>);
|
||
});</code></pre></div>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.get_item_unchecked" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/list.rs.html#319-326">Source</a><a href="#method.get_item_unchecked" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="../types/trait.PyListMethods.html#tymethod.get_item_unchecked" class="fn">get_item_unchecked</a>(&self, index: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.usize.html">usize</a>) -> <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>></h4></section></summary><div class="docblock"><p>Gets the list item at the specified index. Undefined behavior on bad index. Use with caution.</p>
|
||
<h5 id="safety-8"><a class="doc-anchor" href="#safety-8">§</a>Safety</h5>
|
||
<p>Caller must verify that the index is within the bounds of the list.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.get_slice" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/list.rs.html#332-338">Source</a><a href="#method.get_slice" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyListMethods.html#tymethod.get_slice" class="fn">get_slice</a>(&self, low: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.usize.html">usize</a>, high: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.usize.html">usize</a>) -> <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyList.html" title="struct pyo3::types::PyList">PyList</a>></h4></section></summary><div class="docblock"><p>Takes the slice <code>self[low:high]</code> and returns it as a new list.</p>
|
||
<p>Indices must be nonnegative, and out-of-range indices are clipped to
|
||
<code>self.len()</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_item-2" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/list.rs.html#343-355">Source</a><a href="#method.set_item-2" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyListMethods.html#tymethod.set_item" class="fn">set_item</a><I>(&self, index: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.usize.html">usize</a>, item: I) -> <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.unit.html">()</a>><div class="where">where
|
||
I: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py>,</div></h4></section></summary><div class="docblock"><p>Sets the item at the specified index.</p>
|
||
<p>Raises <code>IndexError</code> if the index is out of range.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.del_item-2" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/list.rs.html#361-363">Source</a><a href="#method.del_item-2" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyListMethods.html#tymethod.del_item" class="fn">del_item</a>(&self, index: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.usize.html">usize</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.unit.html">()</a>></h4></section></summary><div class="docblock"><p>Deletes the <code>index</code>th element of self.</p>
|
||
<p>This is equivalent to the Python statement <code>del self[i]</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_slice" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/list.rs.html#369-378">Source</a><a href="#method.set_slice" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyListMethods.html#tymethod.set_slice" class="fn">set_slice</a>(
|
||
&self,
|
||
low: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.usize.html">usize</a>,
|
||
high: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.usize.html">usize</a>,
|
||
seq: &<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.unit.html">()</a>></h4></section></summary><div class="docblock"><p>Assigns the sequence <code>seq</code> to the slice of <code>self</code> from <code>low</code> to <code>high</code>.</p>
|
||
<p>This is equivalent to the Python statement <code>self[low:high] = v</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.del_slice" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/list.rs.html#384-386">Source</a><a href="#method.del_slice" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyListMethods.html#tymethod.del_slice" class="fn">del_slice</a>(&self, low: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.usize.html">usize</a>, high: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.usize.html">usize</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.unit.html">()</a>></h4></section></summary><div class="docblock"><p>Deletes the slice from <code>low</code> to <code>high</code> from <code>self</code>.</p>
|
||
<p>This is equivalent to the Python statement <code>del self[low:high]</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.append" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/list.rs.html#389-404">Source</a><a href="#method.append" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyListMethods.html#tymethod.append" class="fn">append</a><I>(&self, item: I) -> <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.unit.html">()</a>><div class="where">where
|
||
I: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py>,</div></h4></section></summary><div class="docblock"><p>Appends an item to the list.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.insert" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/list.rs.html#409-429">Source</a><a href="#method.insert" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyListMethods.html#tymethod.insert" class="fn">insert</a><I>(&self, index: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.usize.html">usize</a>, item: I) -> <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.unit.html">()</a>><div class="where">where
|
||
I: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py>,</div></h4></section></summary><div class="docblock"><p>Inserts an item at the specified index.</p>
|
||
<p>If <code>index >= self.len()</code>, inserts at the end.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.contains-3" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/list.rs.html#435-440">Source</a><a href="#method.contains-3" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyListMethods.html#tymethod.contains" class="fn">contains</a><V>(&self, value: V) -> <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.bool.html">bool</a>><div class="where">where
|
||
V: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py>,</div></h4></section></summary><div class="docblock"><p>Determines if self contains <code>value</code>.</p>
|
||
<p>This is equivalent to the Python expression <code>value in self</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.index-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/list.rs.html#446-451">Source</a><a href="#method.index-1" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyListMethods.html#tymethod.index" class="fn">index</a><V>(&self, value: V) -> <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.usize.html">usize</a>><div class="where">where
|
||
V: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py>,</div></h4></section></summary><div class="docblock"><p>Returns the first index <code>i</code> for which <code>self[i] == value</code>.</p>
|
||
<p>This is equivalent to the Python expression <code>self.index(value)</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.iter-3" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/list.rs.html#454-456">Source</a><a href="#method.iter-3" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyListMethods.html#tymethod.iter" class="fn">iter</a>(&self) -> <a class="struct" href="../types/iter/struct.BoundListIterator.html" title="struct pyo3::types::iter::BoundListIterator">BoundListIterator</a><'py> <a href="#" class="tooltip" data-notable-ty="BoundListIterator<'py>">ⓘ</a></h4></section></summary><div class="docblock"><p>Returns an iterator over this list’s items.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.locked_for_each-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/list.rs.html#459-464">Source</a><a href="#method.locked_for_each-1" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyListMethods.html#tymethod.locked_for_each" class="fn">locked_for_each</a><F>(&self, closure: F) -> <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.unit.html">()</a>><div class="where">where
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(<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><<a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.unit.html">()</a>>,</div></h4></section></summary><div class="docblock"><p>Iterates over a list while holding a critical section, calling a closure on each item</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sort" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/list.rs.html#467-469">Source</a><a href="#method.sort" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyListMethods.html#tymethod.sort" class="fn">sort</a>(&self) -> <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.unit.html">()</a>></h4></section></summary><div class="docblock"><p>Sorts the list in-place. Equivalent to the Python expression <code>l.sort()</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.reverse" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/list.rs.html#472-474">Source</a><a href="#method.reverse" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyListMethods.html#tymethod.reverse" class="fn">reverse</a>(&self) -> <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.unit.html">()</a>></h4></section></summary><div class="docblock"><p>Reverses the list in-place. Equivalent to the Python expression <code>l.reverse()</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.to_tuple" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/list.rs.html#479-485">Source</a><a href="#method.to_tuple" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyListMethods.html#tymethod.to_tuple" class="fn">to_tuple</a>(&self) -> <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyTuple.html" title="struct pyo3::types::PyTuple">PyTuple</a>></h4></section></summary><div class="docblock"><p>Return a new tuple containing the contents of the list; equivalent to the Python expression <code>tuple(list)</code>.</p>
|
||
<p>This method is equivalent to <code>self.as_sequence().to_tuple()</code> and faster than <code>PyTuple::new(py, this_list)</code>.</p>
|
||
</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PyMappingMethods%3C'py%3E-for-Bound%3C'py,+PyMapping%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/mapping.rs.html#90-161">Source</a><a href="#impl-PyMappingMethods%3C'py%3E-for-Bound%3C'py,+PyMapping%3E" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="../types/trait.PyMappingMethods.html" title="trait pyo3::types::PyMappingMethods">PyMappingMethods</a><'py> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyMapping.html" title="struct pyo3::types::PyMapping">PyMapping</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.len-5" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/mapping.rs.html#92-96">Source</a><a href="#method.len-5" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyMappingMethods.html#tymethod.len" class="fn">len</a>(&self) -> <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.usize.html">usize</a>></h4></section></summary><div class='docblock'>Returns the number of objects in the mapping. <a href="../types/trait.PyMappingMethods.html#tymethod.len">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.is_empty-5" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/mapping.rs.html#99-101">Source</a><a href="#method.is_empty-5" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyMappingMethods.html#tymethod.is_empty" class="fn">is_empty</a>(&self) -> <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.bool.html">bool</a>></h4></section></summary><div class='docblock'>Returns whether the mapping is empty.</div></details><details class="toggle method-toggle" open><summary><section id="method.contains-4" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/mapping.rs.html#103-108">Source</a><a href="#method.contains-4" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyMappingMethods.html#tymethod.contains" class="fn">contains</a><K>(&self, key: K) -> <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.bool.html">bool</a>><div class="where">where
|
||
K: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py>,</div></h4></section></summary><div class='docblock'>Determines if the mapping contains the specified key. <a href="../types/trait.PyMappingMethods.html#tymethod.contains">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.get_item-3" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/mapping.rs.html#111-116">Source</a><a href="#method.get_item-3" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyMappingMethods.html#tymethod.get_item" class="fn">get_item</a><K>(&self, key: K) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<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>>><div class="where">where
|
||
K: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py>,</div></h4></section></summary><div class='docblock'>Gets the item in self with key <code>key</code>. <a href="../types/trait.PyMappingMethods.html#tymethod.get_item">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.set_item-3" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/mapping.rs.html#119-125">Source</a><a href="#method.set_item-3" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyMappingMethods.html#tymethod.set_item" class="fn">set_item</a><K, V>(&self, key: K, value: V) -> <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.unit.html">()</a>><div class="where">where
|
||
K: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py>,
|
||
V: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py>,</div></h4></section></summary><div class='docblock'>Sets the item in self with key <code>key</code>. <a href="../types/trait.PyMappingMethods.html#tymethod.set_item">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.del_item-3" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/mapping.rs.html#128-133">Source</a><a href="#method.del_item-3" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyMappingMethods.html#tymethod.del_item" class="fn">del_item</a><K>(&self, key: K) -> <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.unit.html">()</a>><div class="where">where
|
||
K: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py>,</div></h4></section></summary><div class='docblock'>Deletes the item with key <code>key</code>. <a href="../types/trait.PyMappingMethods.html#tymethod.del_item">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.keys-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/mapping.rs.html#136-142">Source</a><a href="#method.keys-1" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyMappingMethods.html#tymethod.keys" class="fn">keys</a>(&self) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyList.html" title="struct pyo3::types::PyList">PyList</a>>></h4></section></summary><div class='docblock'>Returns a list containing all keys in the mapping.</div></details><details class="toggle method-toggle" open><summary><section id="method.values-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/mapping.rs.html#145-151">Source</a><a href="#method.values-1" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyMappingMethods.html#tymethod.values" class="fn">values</a>(&self) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyList.html" title="struct pyo3::types::PyList">PyList</a>>></h4></section></summary><div class='docblock'>Returns a list containing all values in the mapping.</div></details><details class="toggle method-toggle" open><summary><section id="method.items-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/mapping.rs.html#154-160">Source</a><a href="#method.items-1" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyMappingMethods.html#tymethod.items" class="fn">items</a>(&self) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyList.html" title="struct pyo3::types::PyList">PyList</a>>></h4></section></summary><div class='docblock'>Returns a list of all (key, value) pairs in the mapping.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PyMappingProxyMethods%3C'py,+'a%3E-for-Bound%3C'py,+PyMappingProxy%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/mappingproxy.rs.html#69-111">Source</a><a href="#impl-PyMappingProxyMethods%3C'py,+'a%3E-for-Bound%3C'py,+PyMappingProxy%3E" class="anchor">§</a><h3 class="code-header">impl<'py, 'a> <a class="trait" href="trait.PyMappingProxyMethods.html" title="trait pyo3::prelude::PyMappingProxyMethods">PyMappingProxyMethods</a><'py, 'a> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyMappingProxy.html" title="struct pyo3::types::PyMappingProxy">PyMappingProxy</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.is_empty-6" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/mappingproxy.rs.html#70-72">Source</a><a href="#method.is_empty-6" class="anchor">§</a><h4 class="code-header">fn <a href="trait.PyMappingProxyMethods.html#tymethod.is_empty" class="fn">is_empty</a>(&self) -> <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.bool.html">bool</a>></h4></section></summary><div class='docblock'>Checks if the mappingproxy is empty, i.e. <code>len(self) == 0</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.keys-2" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/mappingproxy.rs.html#75-81">Source</a><a href="#method.keys-2" class="anchor">§</a><h4 class="code-header">fn <a href="trait.PyMappingProxyMethods.html#tymethod.keys" class="fn">keys</a>(&self) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyList.html" title="struct pyo3::types::PyList">PyList</a>>></h4></section></summary><div class='docblock'>Returns a list containing all keys in the mapping.</div></details><details class="toggle method-toggle" open><summary><section id="method.values-2" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/mappingproxy.rs.html#84-90">Source</a><a href="#method.values-2" class="anchor">§</a><h4 class="code-header">fn <a href="trait.PyMappingProxyMethods.html#tymethod.values" class="fn">values</a>(&self) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyList.html" title="struct pyo3::types::PyList">PyList</a>>></h4></section></summary><div class='docblock'>Returns a list containing all values in the mapping.</div></details><details class="toggle method-toggle" open><summary><section id="method.items-2" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/mappingproxy.rs.html#93-99">Source</a><a href="#method.items-2" class="anchor">§</a><h4 class="code-header">fn <a href="trait.PyMappingProxyMethods.html#tymethod.items" class="fn">items</a>(&self) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyList.html" title="struct pyo3::types::PyList">PyList</a>>></h4></section></summary><div class='docblock'>Returns a list of tuples of all (key, value) pairs in the mapping.</div></details><details class="toggle method-toggle" open><summary><section id="method.as_mapping-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/mappingproxy.rs.html#101-103">Source</a><a href="#method.as_mapping-1" class="anchor">§</a><h4 class="code-header">fn <a href="trait.PyMappingProxyMethods.html#tymethod.as_mapping" class="fn">as_mapping</a>(&self) -> &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyMapping.html" title="struct pyo3::types::PyMapping">PyMapping</a>></h4></section></summary><div class='docblock'>Returns <code>self</code> cast as a <code>PyMapping</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_iter-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/mappingproxy.rs.html#105-110">Source</a><a href="#method.try_iter-1" class="anchor">§</a><h4 class="code-header">fn <a href="trait.PyMappingProxyMethods.html#tymethod.try_iter" class="fn">try_iter</a>(&'a self) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><BoundMappingProxyIterator<'py, 'a>></h4></section></summary><div class='docblock'>Takes an object and returns an iterator for it. Returns an error if the object is not
|
||
iterable.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PyModuleMethods%3C'py%3E-for-Bound%3C'py,+PyModule%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/module.rs.html#428-565">Source</a><a href="#impl-PyModuleMethods%3C'py%3E-for-Bound%3C'py,+PyModule%3E" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="../types/trait.PyModuleMethods.html" title="trait pyo3::types::PyModuleMethods">PyModuleMethods</a><'py> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyModule.html" title="struct pyo3::types::PyModule">PyModule</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.dict" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/module.rs.html#429-437">Source</a><a href="#method.dict" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyModuleMethods.html#tymethod.dict" class="fn">dict</a>(&self) -> <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyDict.html" title="struct pyo3::types::PyDict">PyDict</a>></h4></section></summary><div class='docblock'>Returns the module’s <code>__dict__</code> attribute, which contains the module’s symbol table.</div></details><details class="toggle method-toggle" open><summary><section id="method.index-2" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/module.rs.html#439-453">Source</a><a href="#method.index-2" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyModuleMethods.html#tymethod.index" class="fn">index</a>(&self) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyList.html" title="struct pyo3::types::PyList">PyList</a>>></h4></section></summary><div class='docblock'>Returns the index (the <code>__all__</code> attribute) of the module,
|
||
creating one if needed. <a href="../types/trait.PyModuleMethods.html#tymethod.index">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.name-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/module.rs.html#455-473">Source</a><a href="#method.name-1" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyModuleMethods.html#tymethod.name" class="fn">name</a>(&self) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyString.html" title="struct pyo3::types::PyString">PyString</a>>></h4></section></summary><div class='docblock'>Returns the name (the <code>__name__</code> attribute) of the module. <a href="../types/trait.PyModuleMethods.html#tymethod.name">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.filename" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/module.rs.html#475-491">Source</a><a href="#method.filename" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyModuleMethods.html#tymethod.filename" class="fn">filename</a>(&self) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyString.html" title="struct pyo3::types::PyString">PyString</a>>></h4></section></summary><div class='docblock'>Returns the filename (the <code>__file__</code> attribute) of the module. <a href="../types/trait.PyModuleMethods.html#tymethod.filename">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.add-5" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/module.rs.html#493-516">Source</a><a href="#method.add-5" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyModuleMethods.html#tymethod.add" class="fn">add</a><N, V>(&self, name: N, value: V) -> <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.unit.html">()</a>><div class="where">where
|
||
N: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py, Target = <a class="struct" href="../types/struct.PyString.html" title="struct pyo3::types::PyString">PyString</a>>,
|
||
V: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py>,</div></h4></section></summary><div class='docblock'>Adds an attribute to the module. <a href="../types/trait.PyModuleMethods.html#tymethod.add">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.add_class" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/module.rs.html#518-524">Source</a><a href="#method.add_class" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyModuleMethods.html#tymethod.add_class" class="fn">add_class</a><T>(&self) -> <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.unit.html">()</a>><div class="where">where
|
||
T: <a class="trait" href="../pyclass/trait.PyClass.html" title="trait pyo3::pyclass::PyClass">PyClass</a>,</div></h4></section></summary><div class='docblock'>Adds a new class to the module. <a href="../types/trait.PyModuleMethods.html#tymethod.add_class">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.add_wrapped" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/module.rs.html#526-537">Source</a><a href="#method.add_wrapped" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyModuleMethods.html#tymethod.add_wrapped" class="fn">add_wrapped</a><T>(&self, wrapper: &impl <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(<a class="struct" href="../marker/struct.Python.html" title="struct pyo3::marker::Python">Python</a><'py>) -> T) -> <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.unit.html">()</a>><div class="where">where
|
||
T: IntoPyCallbackOutput<'py, <a class="type" href="../type.PyObject.html" title="type pyo3::PyObject">PyObject</a>>,</div></h4></section></summary><div class='docblock'>Adds a function or a (sub)module to a module, using the functions name as name. <a href="../types/trait.PyModuleMethods.html#tymethod.add_wrapped">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.add_submodule" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/module.rs.html#539-542">Source</a><a href="#method.add_submodule" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyModuleMethods.html#tymethod.add_submodule" class="fn">add_submodule</a>(&self, module: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyModule.html" title="struct pyo3::types::PyModule">PyModule</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.unit.html">()</a>></h4></section></summary><div class='docblock'>Adds a submodule to a module. <a href="../types/trait.PyModuleMethods.html#tymethod.add_submodule">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.add_function" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/module.rs.html#544-547">Source</a><a href="#method.add_function" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyModuleMethods.html#tymethod.add_function" class="fn">add_function</a>(&self, fun: <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyCFunction.html" title="struct pyo3::types::PyCFunction">PyCFunction</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.unit.html">()</a>></h4></section></summary><div class='docblock'>Add a function to a module. <a href="../types/trait.PyModuleMethods.html#tymethod.add_function">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.gil_used" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/module.rs.html#550-564">Source</a><a href="#method.gil_used" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyModuleMethods.html#tymethod.gil_used" class="fn">gil_used</a>(&self, gil_used: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</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.unit.html">()</a>></h4></section></summary><div class='docblock'>Declare whether or not this module supports running with the GIL disabled <a href="../types/trait.PyModuleMethods.html#tymethod.gil_used">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PySequenceMethods%3C'py%3E-for-Bound%3C'py,+PySequence%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/sequence.rs.html#142-332">Source</a><a href="#impl-PySequenceMethods%3C'py%3E-for-Bound%3C'py,+PySequence%3E" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="../types/trait.PySequenceMethods.html" title="trait pyo3::types::PySequenceMethods">PySequenceMethods</a><'py> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PySequence.html" title="struct pyo3::types::PySequence">PySequence</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.len-6" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/sequence.rs.html#144-148">Source</a><a href="#method.len-6" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PySequenceMethods.html#tymethod.len" class="fn">len</a>(&self) -> <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.usize.html">usize</a>></h4></section></summary><div class='docblock'>Returns the number of objects in sequence. <a href="../types/trait.PySequenceMethods.html#tymethod.len">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.is_empty-7" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/sequence.rs.html#151-153">Source</a><a href="#method.is_empty-7" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PySequenceMethods.html#tymethod.is_empty" class="fn">is_empty</a>(&self) -> <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.bool.html">bool</a>></h4></section></summary><div class='docblock'>Returns whether the sequence is empty.</div></details><details class="toggle method-toggle" open><summary><section id="method.concat" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/sequence.rs.html#156-162">Source</a><a href="#method.concat" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PySequenceMethods.html#tymethod.concat" class="fn">concat</a>(
|
||
&self,
|
||
other: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PySequence.html" title="struct pyo3::types::PySequence">PySequence</a>>,
|
||
) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PySequence.html" title="struct pyo3::types::PySequence">PySequence</a>>></h4></section></summary><div class='docblock'>Returns the concatenation of <code>self</code> and <code>other</code>. <a href="../types/trait.PySequenceMethods.html#tymethod.concat">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.repeat" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/sequence.rs.html#165-171">Source</a><a href="#method.repeat" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PySequenceMethods.html#tymethod.repeat" class="fn">repeat</a>(&self, count: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.usize.html">usize</a>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PySequence.html" title="struct pyo3::types::PySequence">PySequence</a>>></h4></section></summary><div class='docblock'>Returns the result of repeating a sequence object <code>count</code> times. <a href="../types/trait.PySequenceMethods.html#tymethod.repeat">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.in_place_concat" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/sequence.rs.html#174-180">Source</a><a href="#method.in_place_concat" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PySequenceMethods.html#tymethod.in_place_concat" class="fn">in_place_concat</a>(
|
||
&self,
|
||
other: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PySequence.html" title="struct pyo3::types::PySequence">PySequence</a>>,
|
||
) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PySequence.html" title="struct pyo3::types::PySequence">PySequence</a>>></h4></section></summary><div class='docblock'>Concatenates <code>self</code> and <code>other</code>, in place if possible. <a href="../types/trait.PySequenceMethods.html#tymethod.in_place_concat">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.in_place_repeat" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/sequence.rs.html#183-189">Source</a><a href="#method.in_place_repeat" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PySequenceMethods.html#tymethod.in_place_repeat" class="fn">in_place_repeat</a>(&self, count: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.usize.html">usize</a>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PySequence.html" title="struct pyo3::types::PySequence">PySequence</a>>></h4></section></summary><div class='docblock'>Repeats the sequence object <code>count</code> times and updates <code>self</code>, if possible. <a href="../types/trait.PySequenceMethods.html#tymethod.in_place_repeat">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.get_item-4" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/sequence.rs.html#192-197">Source</a><a href="#method.get_item-4" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PySequenceMethods.html#tymethod.get_item" class="fn">get_item</a>(&self, index: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.usize.html">usize</a>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<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>>></h4></section></summary><div class='docblock'>Returns the <code>index</code>th element of the Sequence. <a href="../types/trait.PySequenceMethods.html#tymethod.get_item">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.get_slice-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/sequence.rs.html#200-206">Source</a><a href="#method.get_slice-1" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PySequenceMethods.html#tymethod.get_slice" class="fn">get_slice</a>(
|
||
&self,
|
||
begin: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.usize.html">usize</a>,
|
||
end: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.usize.html">usize</a>,
|
||
) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PySequence.html" title="struct pyo3::types::PySequence">PySequence</a>>></h4></section></summary><div class='docblock'>Returns the slice of sequence object between <code>begin</code> and <code>end</code>. <a href="../types/trait.PySequenceMethods.html#tymethod.get_slice">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.set_item-4" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/sequence.rs.html#209-229">Source</a><a href="#method.set_item-4" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PySequenceMethods.html#tymethod.set_item" class="fn">set_item</a><I>(&self, i: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.usize.html">usize</a>, item: I) -> <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.unit.html">()</a>><div class="where">where
|
||
I: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py>,</div></h4></section></summary><div class='docblock'>Assigns object <code>item</code> to the <code>i</code>th element of self. <a href="../types/trait.PySequenceMethods.html#tymethod.set_item">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.del_item-4" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/sequence.rs.html#232-236">Source</a><a href="#method.del_item-4" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PySequenceMethods.html#tymethod.del_item" class="fn">del_item</a>(&self, i: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.usize.html">usize</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.unit.html">()</a>></h4></section></summary><div class='docblock'>Deletes the <code>i</code>th element of self. <a href="../types/trait.PySequenceMethods.html#tymethod.del_item">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.set_slice-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/sequence.rs.html#239-248">Source</a><a href="#method.set_slice-1" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PySequenceMethods.html#tymethod.set_slice" class="fn">set_slice</a>(&self, i1: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.usize.html">usize</a>, i2: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.usize.html">usize</a>, v: &<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.unit.html">()</a>></h4></section></summary><div class='docblock'>Assigns the sequence <code>v</code> to the slice of <code>self</code> from <code>i1</code> to <code>i2</code>. <a href="../types/trait.PySequenceMethods.html#tymethod.set_slice">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.del_slice-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/sequence.rs.html#251-255">Source</a><a href="#method.del_slice-1" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PySequenceMethods.html#tymethod.del_slice" class="fn">del_slice</a>(&self, i1: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.usize.html">usize</a>, i2: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.usize.html">usize</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.unit.html">()</a>></h4></section></summary><div class='docblock'>Deletes the slice from <code>i1</code> to <code>i2</code> from <code>self</code>. <a href="../types/trait.PySequenceMethods.html#tymethod.del_slice">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.count-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/sequence.rs.html#259-274">Source</a><a href="#method.count-1" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PySequenceMethods.html#tymethod.count" class="fn">count</a><V>(&self, value: V) -> <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.usize.html">usize</a>><div class="where">where
|
||
V: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py>,</div></h4></section></summary><div class='docblock'>Returns the number of occurrences of <code>value</code> in self, that is, return the
|
||
number of keys for which <code>self[key] == value</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.contains-5" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/sequence.rs.html#277-295">Source</a><a href="#method.contains-5" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PySequenceMethods.html#tymethod.contains" class="fn">contains</a><V>(&self, value: V) -> <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.bool.html">bool</a>><div class="where">where
|
||
V: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py>,</div></h4></section></summary><div class='docblock'>Determines if self contains <code>value</code>. <a href="../types/trait.PySequenceMethods.html#tymethod.contains">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.index-3" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/sequence.rs.html#298-313">Source</a><a href="#method.index-3" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PySequenceMethods.html#tymethod.index" class="fn">index</a><V>(&self, value: V) -> <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.usize.html">usize</a>><div class="where">where
|
||
V: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py>,</div></h4></section></summary><div class='docblock'>Returns the first index <code>i</code> for which <code>self[i] == value</code>. <a href="../types/trait.PySequenceMethods.html#tymethod.index">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.to_list" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/sequence.rs.html#316-322">Source</a><a href="#method.to_list" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PySequenceMethods.html#tymethod.to_list" class="fn">to_list</a>(&self) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyList.html" title="struct pyo3::types::PyList">PyList</a>>></h4></section></summary><div class='docblock'>Returns a fresh list based on the Sequence.</div></details><details class="toggle method-toggle" open><summary><section id="method.to_tuple-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/sequence.rs.html#325-331">Source</a><a href="#method.to_tuple-1" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PySequenceMethods.html#tymethod.to_tuple" class="fn">to_tuple</a>(&self) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyTuple.html" title="struct pyo3::types::PyTuple">PyTuple</a>>></h4></section></summary><div class='docblock'>Returns a fresh tuple based on the Sequence.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PySetMethods%3C'py%3E-for-Bound%3C'py,+PySet%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/set.rs.html#135-211">Source</a><a href="#impl-PySetMethods%3C'py%3E-for-Bound%3C'py,+PySet%3E" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="../types/trait.PySetMethods.html" title="trait pyo3::types::PySetMethods">PySetMethods</a><'py> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PySet.html" title="struct pyo3::types::PySet">PySet</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.clear-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/set.rs.html#137-141">Source</a><a href="#method.clear-1" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PySetMethods.html#tymethod.clear" class="fn">clear</a>(&self)</h4></section></summary><div class='docblock'>Removes all elements from the set.</div></details><details class="toggle method-toggle" open><summary><section id="method.len-7" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/set.rs.html#144-146">Source</a><a href="#method.len-7" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PySetMethods.html#tymethod.len" class="fn">len</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.usize.html">usize</a></h4></section></summary><div class='docblock'>Returns the number of items in the set. <a href="../types/trait.PySetMethods.html#tymethod.len">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.contains-6" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/set.rs.html#148-165">Source</a><a href="#method.contains-6" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PySetMethods.html#tymethod.contains" class="fn">contains</a><K>(&self, key: K) -> <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.bool.html">bool</a>><div class="where">where
|
||
K: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py>,</div></h4></section></summary><div class='docblock'>Determines if the set contains the specified key. <a href="../types/trait.PySetMethods.html#tymethod.contains">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.discard" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/set.rs.html#167-184">Source</a><a href="#method.discard" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PySetMethods.html#tymethod.discard" class="fn">discard</a><K>(&self, key: K) -> <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.bool.html">bool</a>><div class="where">where
|
||
K: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py>,</div></h4></section></summary><div class='docblock'>Removes the element from the set if it is present. <a href="../types/trait.PySetMethods.html#tymethod.discard">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.add-6" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/set.rs.html#186-201">Source</a><a href="#method.add-6" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PySetMethods.html#tymethod.add" class="fn">add</a><K>(&self, key: K) -> <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.unit.html">()</a>><div class="where">where
|
||
K: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py>,</div></h4></section></summary><div class='docblock'>Adds an element to the set.</div></details><details class="toggle method-toggle" open><summary><section id="method.pop" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/set.rs.html#203-206">Source</a><a href="#method.pop" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PySetMethods.html#tymethod.pop" class="fn">pop</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.85.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<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>>></h4></section></summary><div class='docblock'>Removes and returns an arbitrary element from the set.</div></details><details class="toggle method-toggle" open><summary><section id="method.iter-4" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/set.rs.html#208-210">Source</a><a href="#method.iter-4" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PySetMethods.html#tymethod.iter" class="fn">iter</a>(&self) -> <a class="struct" href="../types/iter/struct.BoundSetIterator.html" title="struct pyo3::types::iter::BoundSetIterator">BoundSetIterator</a><'py> <a href="#" class="tooltip" data-notable-ty="BoundSetIterator<'py>">ⓘ</a></h4></section></summary><div class='docblock'>Returns an iterator of values in this set. <a href="../types/trait.PySetMethods.html#tymethod.iter">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.is_empty-8" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/set.rs.html#101-103">Source</a><a href="#method.is_empty-8" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PySetMethods.html#method.is_empty" class="fn">is_empty</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Checks if set is empty.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PySliceMethods%3C'py%3E-for-Bound%3C'py,+PySlice%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/slice.rs.html#109-137">Source</a><a href="#impl-PySliceMethods%3C'py%3E-for-Bound%3C'py,+PySlice%3E" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="../types/trait.PySliceMethods.html" title="trait pyo3::types::PySliceMethods">PySliceMethods</a><'py> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PySlice.html" title="struct pyo3::types::PySlice">PySlice</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.indices" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/slice.rs.html#110-136">Source</a><a href="#method.indices" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PySliceMethods.html#tymethod.indices" class="fn">indices</a>(&self, length: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.isize.html">isize</a>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<a class="struct" href="../types/struct.PySliceIndices.html" title="struct pyo3::types::PySliceIndices">PySliceIndices</a>></h4></section></summary><div class='docblock'>Retrieves the start, stop, and step indices from the slice object,
|
||
assuming a sequence of length <code>length</code>, and stores the length of the
|
||
slice in its <code>slicelength</code> member.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PyStringMethods%3C'py%3E-for-Bound%3C'py,+PyString%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/string.rs.html#292-318">Source</a><a href="#impl-PyStringMethods%3C'py%3E-for-Bound%3C'py,+PyString%3E" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="../types/trait.PyStringMethods.html" title="trait pyo3::types::PyStringMethods">PyStringMethods</a><'py> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyString.html" title="struct pyo3::types::PyString">PyString</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.to_str" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/string.rs.html#294-296">Source</a><a href="#method.to_str" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyStringMethods.html#tymethod.to_str" class="fn">to_str</a>(&self) -> <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.str.html">str</a>></h4></section></summary><div class='docblock'>Gets the Python string as a Rust UTF-8 string slice. <a href="../types/trait.PyStringMethods.html#tymethod.to_str">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.to_cow" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/string.rs.html#298-300">Source</a><a href="#method.to_cow" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyStringMethods.html#tymethod.to_cow" class="fn">to_cow</a>(&self) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<a class="enum" href="https://doc.rust-lang.org/1.85.1/alloc/borrow/enum.Cow.html" title="enum alloc::borrow::Cow">Cow</a><'_, <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.str.html">str</a>>></h4></section></summary><div class='docblock'>Converts the <code>PyString</code> into a Rust string, avoiding copying when possible. <a href="../types/trait.PyStringMethods.html#tymethod.to_cow">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.to_string_lossy" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/string.rs.html#302-304">Source</a><a href="#method.to_string_lossy" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyStringMethods.html#tymethod.to_string_lossy" class="fn">to_string_lossy</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.85.1/alloc/borrow/enum.Cow.html" title="enum alloc::borrow::Cow">Cow</a><'_, <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.str.html">str</a>></h4></section></summary><div class='docblock'>Converts the <code>PyString</code> into a Rust string. <a href="../types/trait.PyStringMethods.html#tymethod.to_string_lossy">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.encode_utf8" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/string.rs.html#306-312">Source</a><a href="#method.encode_utf8" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyStringMethods.html#tymethod.encode_utf8" class="fn">encode_utf8</a>(&self) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyBytes.html" title="struct pyo3::types::PyBytes">PyBytes</a>>></h4></section></summary><div class='docblock'>Encodes this string as a Python <code>bytes</code> object, using UTF-8 encoding.</div></details><details class="toggle method-toggle" open><summary><section id="method.data-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/string.rs.html#315-317">Source</a><a href="#method.data-1" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="../types/trait.PyStringMethods.html#tymethod.data" class="fn">data</a>(&self) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<a class="enum" href="../types/enum.PyStringData.html" title="enum pyo3::types::PyStringData">PyStringData</a><'_>></h4></section></summary><div class='docblock'>Obtains the raw data backing the Python string. <a href="../types/trait.PyStringMethods.html#tymethod.data">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PyTimeAccess-for-Bound%3C'_,+PyDateTime%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/datetime.rs.html#450-470">Source</a><a href="#impl-PyTimeAccess-for-Bound%3C'_,+PyDateTime%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../types/trait.PyTimeAccess.html" title="trait pyo3::types::PyTimeAccess">PyTimeAccess</a> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyDateTime.html" title="struct pyo3::types::PyDateTime">PyDateTime</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.get_hour" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/datetime.rs.html#451-453">Source</a><a href="#method.get_hour" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyTimeAccess.html#tymethod.get_hour" class="fn">get_hour</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.u8.html">u8</a></h4></section></summary><div class='docblock'>Returns the hour, as an int from 0 through 23. <a href="../types/trait.PyTimeAccess.html#tymethod.get_hour">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.get_minute" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/datetime.rs.html#455-457">Source</a><a href="#method.get_minute" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyTimeAccess.html#tymethod.get_minute" class="fn">get_minute</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.u8.html">u8</a></h4></section></summary><div class='docblock'>Returns the minute, as an int from 0 through 59. <a href="../types/trait.PyTimeAccess.html#tymethod.get_minute">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.get_second" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/datetime.rs.html#459-461">Source</a><a href="#method.get_second" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyTimeAccess.html#tymethod.get_second" class="fn">get_second</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.u8.html">u8</a></h4></section></summary><div class='docblock'>Returns the second, as an int from 0 through 59. <a href="../types/trait.PyTimeAccess.html#tymethod.get_second">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.get_microsecond" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/datetime.rs.html#463-465">Source</a><a href="#method.get_microsecond" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyTimeAccess.html#tymethod.get_microsecond" class="fn">get_microsecond</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.u32.html">u32</a></h4></section></summary><div class='docblock'>Returns the microsecond, as an int from 0 through 999999. <a href="../types/trait.PyTimeAccess.html#tymethod.get_microsecond">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.get_fold" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/datetime.rs.html#467-469">Source</a><a href="#method.get_fold" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyTimeAccess.html#tymethod.get_fold" class="fn">get_fold</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Returns whether this date is the later of two moments with the
|
||
same representation, during a repeated interval. <a href="../types/trait.PyTimeAccess.html#tymethod.get_fold">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PyTimeAccess-for-Bound%3C'_,+PyTime%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/datetime.rs.html#602-622">Source</a><a href="#impl-PyTimeAccess-for-Bound%3C'_,+PyTime%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../types/trait.PyTimeAccess.html" title="trait pyo3::types::PyTimeAccess">PyTimeAccess</a> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyTime.html" title="struct pyo3::types::PyTime">PyTime</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.get_hour-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/datetime.rs.html#603-605">Source</a><a href="#method.get_hour-1" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyTimeAccess.html#tymethod.get_hour" class="fn">get_hour</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.u8.html">u8</a></h4></section></summary><div class='docblock'>Returns the hour, as an int from 0 through 23. <a href="../types/trait.PyTimeAccess.html#tymethod.get_hour">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.get_minute-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/datetime.rs.html#607-609">Source</a><a href="#method.get_minute-1" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyTimeAccess.html#tymethod.get_minute" class="fn">get_minute</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.u8.html">u8</a></h4></section></summary><div class='docblock'>Returns the minute, as an int from 0 through 59. <a href="../types/trait.PyTimeAccess.html#tymethod.get_minute">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.get_second-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/datetime.rs.html#611-613">Source</a><a href="#method.get_second-1" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyTimeAccess.html#tymethod.get_second" class="fn">get_second</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.u8.html">u8</a></h4></section></summary><div class='docblock'>Returns the second, as an int from 0 through 59. <a href="../types/trait.PyTimeAccess.html#tymethod.get_second">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.get_microsecond-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/datetime.rs.html#615-617">Source</a><a href="#method.get_microsecond-1" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyTimeAccess.html#tymethod.get_microsecond" class="fn">get_microsecond</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.u32.html">u32</a></h4></section></summary><div class='docblock'>Returns the microsecond, as an int from 0 through 999999. <a href="../types/trait.PyTimeAccess.html#tymethod.get_microsecond">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.get_fold-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/datetime.rs.html#619-621">Source</a><a href="#method.get_fold-1" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyTimeAccess.html#tymethod.get_fold" class="fn">get_fold</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Returns whether this date is the later of two moments with the
|
||
same representation, during a repeated interval. <a href="../types/trait.PyTimeAccess.html#tymethod.get_fold">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PyTracebackMethods%3C'py%3E-for-Bound%3C'py,+PyTraceback%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/traceback.rs.html#62-79">Source</a><a href="#impl-PyTracebackMethods%3C'py%3E-for-Bound%3C'py,+PyTraceback%3E" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="../types/trait.PyTracebackMethods.html" title="trait pyo3::types::PyTracebackMethods">PyTracebackMethods</a><'py> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyTraceback.html" title="struct pyo3::types::PyTraceback">PyTraceback</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.format" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/traceback.rs.html#63-78">Source</a><a href="#method.format" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyTracebackMethods.html#tymethod.format" class="fn">format</a>(&self) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<a class="struct" href="https://doc.rust-lang.org/1.85.1/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>></h4></section></summary><div class='docblock'>Formats the traceback as a string. <a href="../types/trait.PyTracebackMethods.html#tymethod.format">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PyTupleMethods%3C'py%3E-for-Bound%3C'py,+PyTuple%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/tuple.rs.html#233-320">Source</a><a href="#impl-PyTupleMethods%3C'py%3E-for-Bound%3C'py,+PyTuple%3E" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="../types/trait.PyTupleMethods.html" title="trait pyo3::types::PyTupleMethods">PyTupleMethods</a><'py> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyTuple.html" title="struct pyo3::types::PyTuple">PyTuple</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.len-8" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/tuple.rs.html#234-243">Source</a><a href="#method.len-8" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyTupleMethods.html#tymethod.len" class="fn">len</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.usize.html">usize</a></h4></section></summary><div class='docblock'>Gets the length of the tuple.</div></details><details class="toggle method-toggle" open><summary><section id="method.is_empty-9" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/tuple.rs.html#245-247">Source</a><a href="#method.is_empty-9" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyTupleMethods.html#tymethod.is_empty" class="fn">is_empty</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Checks if the tuple is empty.</div></details><details class="toggle method-toggle" open><summary><section id="method.as_sequence-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/tuple.rs.html#249-251">Source</a><a href="#method.as_sequence-1" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyTupleMethods.html#tymethod.as_sequence" class="fn">as_sequence</a>(&self) -> &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PySequence.html" title="struct pyo3::types::PySequence">PySequence</a>></h4></section></summary><div class='docblock'>Returns <code>self</code> cast as a <code>PySequence</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.into_sequence-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/tuple.rs.html#253-255">Source</a><a href="#method.into_sequence-1" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyTupleMethods.html#tymethod.into_sequence" class="fn">into_sequence</a>(self) -> <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PySequence.html" title="struct pyo3::types::PySequence">PySequence</a>></h4></section></summary><div class='docblock'>Returns <code>self</code> cast as a <code>PySequence</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.get_slice-2" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/tuple.rs.html#257-263">Source</a><a href="#method.get_slice-2" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyTupleMethods.html#tymethod.get_slice" class="fn">get_slice</a>(&self, low: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.usize.html">usize</a>, high: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.usize.html">usize</a>) -> <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyTuple.html" title="struct pyo3::types::PyTuple">PyTuple</a>></h4></section></summary><div class='docblock'>Takes the slice <code>self[low:high]</code> and returns it as a new tuple. <a href="../types/trait.PyTupleMethods.html#tymethod.get_slice">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.get_item-5" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/tuple.rs.html#265-267">Source</a><a href="#method.get_item-5" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyTupleMethods.html#tymethod.get_item" class="fn">get_item</a>(&self, index: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.usize.html">usize</a>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<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>>></h4></section></summary><div class='docblock'>Gets the tuple item at the specified index. <a href="../types/trait.PyTupleMethods.html#tymethod.get_item">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.get_borrowed_item" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/tuple.rs.html#269-271">Source</a><a href="#method.get_borrowed_item" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyTupleMethods.html#tymethod.get_borrowed_item" class="fn">get_borrowed_item</a><'a>(
|
||
&'a self,
|
||
index: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.usize.html">usize</a>,
|
||
) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<a class="struct" href="../struct.Borrowed.html" title="struct pyo3::Borrowed">Borrowed</a><'a, 'py, <a class="struct" href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny">PyAny</a>>></h4></section></summary><div class='docblock'>Like <a href="../types/trait.PyTupleMethods.html#tymethod.get_item" title="method pyo3::types::PyTupleMethods::get_item"><code>get_item</code></a>, but returns a borrowed object, which is a slight performance optimization
|
||
by avoiding a reference count change.</div></details><details class="toggle method-toggle" open><summary><section id="method.get_item_unchecked-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/tuple.rs.html#274-276">Source</a><a href="#method.get_item_unchecked-1" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="../types/trait.PyTupleMethods.html#tymethod.get_item_unchecked" class="fn">get_item_unchecked</a>(&self, index: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.usize.html">usize</a>) -> <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>></h4></section></summary><div class='docblock'>Gets the tuple item at the specified index. Undefined behavior on bad index. Use with caution. <a href="../types/trait.PyTupleMethods.html#tymethod.get_item_unchecked">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.get_borrowed_item_unchecked" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/tuple.rs.html#279-281">Source</a><a href="#method.get_borrowed_item_unchecked" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="../types/trait.PyTupleMethods.html#tymethod.get_borrowed_item_unchecked" class="fn">get_borrowed_item_unchecked</a><'a>(
|
||
&'a self,
|
||
index: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.usize.html">usize</a>,
|
||
) -> <a class="struct" href="../struct.Borrowed.html" title="struct pyo3::Borrowed">Borrowed</a><'a, 'py, <a class="struct" href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny">PyAny</a>></h4></section></summary><div class='docblock'>Like <a href="../types/trait.PyTupleMethods.html#tymethod.get_item_unchecked" title="method pyo3::types::PyTupleMethods::get_item_unchecked"><code>get_item_unchecked</code></a>, but returns a borrowed object,
|
||
which is a slight performance optimization by avoiding a reference count change. <a href="../types/trait.PyTupleMethods.html#tymethod.get_borrowed_item_unchecked">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.as_slice" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/tuple.rs.html#284-289">Source</a><a href="#method.as_slice" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyTupleMethods.html#tymethod.as_slice" class="fn">as_slice</a>(&self) -> &[<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>>]</h4></section></summary><div class='docblock'>Returns <code>self</code> as a slice of objects.</div></details><details class="toggle method-toggle" open><summary><section id="method.contains-7" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/tuple.rs.html#292-297">Source</a><a href="#method.contains-7" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyTupleMethods.html#tymethod.contains" class="fn">contains</a><V>(&self, value: V) -> <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.bool.html">bool</a>><div class="where">where
|
||
V: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py>,</div></h4></section></summary><div class='docblock'>Determines if self contains <code>value</code>. <a href="../types/trait.PyTupleMethods.html#tymethod.contains">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.index-4" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/tuple.rs.html#300-305">Source</a><a href="#method.index-4" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyTupleMethods.html#tymethod.index" class="fn">index</a><V>(&self, value: V) -> <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.usize.html">usize</a>><div class="where">where
|
||
V: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py>,</div></h4></section></summary><div class='docblock'>Returns the first index <code>i</code> for which <code>self[i] == value</code>. <a href="../types/trait.PyTupleMethods.html#tymethod.index">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.iter-5" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/tuple.rs.html#307-309">Source</a><a href="#method.iter-5" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyTupleMethods.html#tymethod.iter" class="fn">iter</a>(&self) -> <a class="struct" href="../types/iter/struct.BoundTupleIterator.html" title="struct pyo3::types::iter::BoundTupleIterator">BoundTupleIterator</a><'py> <a href="#" class="tooltip" data-notable-ty="BoundTupleIterator<'py>">ⓘ</a></h4></section></summary><div class='docblock'>Returns an iterator over the tuple items.</div></details><details class="toggle method-toggle" open><summary><section id="method.iter_borrowed" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/tuple.rs.html#311-313">Source</a><a href="#method.iter_borrowed" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyTupleMethods.html#tymethod.iter_borrowed" class="fn">iter_borrowed</a><'a>(&'a self) -> <a class="struct" href="../types/iter/struct.BorrowedTupleIterator.html" title="struct pyo3::types::iter::BorrowedTupleIterator">BorrowedTupleIterator</a><'a, 'py> <a href="#" class="tooltip" data-notable-ty="BorrowedTupleIterator<'a, 'py>">ⓘ</a></h4></section></summary><div class='docblock'>Like <a href="../types/trait.PyTupleMethods.html#tymethod.iter" title="method pyo3::types::PyTupleMethods::iter"><code>iter</code></a>, but produces an iterator which returns borrowed objects,
|
||
which is a slight performance optimization by avoiding a reference count change.</div></details><details class="toggle method-toggle" open><summary><section id="method.to_list-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/tuple.rs.html#315-319">Source</a><a href="#method.to_list-1" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyTupleMethods.html#tymethod.to_list" class="fn">to_list</a>(&self) -> <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyList.html" title="struct pyo3::types::PyList">PyList</a>></h4></section></summary><div class='docblock'>Return a new list containing the contents of this tuple; equivalent to the Python expression <code>list(tuple)</code>. <a href="../types/trait.PyTupleMethods.html#tymethod.to_list">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PyTypeMethods%3C'py%3E-for-Bound%3C'py,+PyType%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/typeobject.rs.html#104-251">Source</a><a href="#impl-PyTypeMethods%3C'py%3E-for-Bound%3C'py,+PyType%3E" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="../types/trait.PyTypeMethods.html" title="trait pyo3::types::PyTypeMethods">PyTypeMethods</a><'py> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyType.html" title="struct pyo3::types::PyType">PyType</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_type_ptr" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/typeobject.rs.html#107-109">Source</a><a href="#method.as_type_ptr" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyTypeMethods.html#tymethod.as_type_ptr" class="fn">as_type_ptr</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.pointer.html">*mut </a><a class="struct" href="../ffi/struct.PyTypeObject.html" title="struct pyo3::ffi::PyTypeObject">PyTypeObject</a></h4></section></summary><div class="docblock"><p>Retrieves the underlying FFI pointer associated with this Python object.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.name-2" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/typeobject.rs.html#112-128">Source</a><a href="#method.name-2" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyTypeMethods.html#tymethod.name" class="fn">name</a>(&self) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyString.html" title="struct pyo3::types::PyString">PyString</a>>></h4></section></summary><div class="docblock"><p>Gets the name of the <code>PyType</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.qualname" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/typeobject.rs.html#131-147">Source</a><a href="#method.qualname" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyTypeMethods.html#tymethod.qualname" class="fn">qualname</a>(&self) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyString.html" title="struct pyo3::types::PyString">PyString</a>>></h4></section></summary><div class="docblock"><p>Gets the <a href="https://docs.python.org/3/glossary.html#term-qualified-name">qualified name</a> of the <code>PyType</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.module" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/typeobject.rs.html#150-162">Source</a><a href="#method.module" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyTypeMethods.html#tymethod.module" class="fn">module</a>(&self) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyString.html" title="struct pyo3::types::PyString">PyString</a>>></h4></section></summary><div class="docblock"><p>Gets the name of the module defining the <code>PyType</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.fully_qualified_name" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/typeobject.rs.html#165-188">Source</a><a href="#method.fully_qualified_name" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyTypeMethods.html#tymethod.fully_qualified_name" class="fn">fully_qualified_name</a>(&self) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyString.html" title="struct pyo3::types::PyString">PyString</a>>></h4></section></summary><div class="docblock"><p>Gets the <a href="https://docs.python.org/3/glossary.html#term-qualified-name">fully qualified name</a> of the <code>PyType</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_subclass" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/typeobject.rs.html#193-197">Source</a><a href="#method.is_subclass" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyTypeMethods.html#tymethod.is_subclass" class="fn">is_subclass</a>(&self, other: &<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.bool.html">bool</a>></h4></section></summary><div class="docblock"><p>Checks whether <code>self</code> is a subclass of <code>other</code>.</p>
|
||
<p>Equivalent to the Python expression <code>issubclass(self, other)</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_subclass_of" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/typeobject.rs.html#203-208">Source</a><a href="#method.is_subclass_of" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyTypeMethods.html#tymethod.is_subclass_of" class="fn">is_subclass_of</a><T>(&self) -> <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.bool.html">bool</a>><div class="where">where
|
||
T: <a class="trait" href="../type_object/trait.PyTypeInfo.html" title="trait pyo3::type_object::PyTypeInfo">PyTypeInfo</a>,</div></h4></section></summary><div class="docblock"><p>Checks whether <code>self</code> is a subclass of type <code>T</code>.</p>
|
||
<p>Equivalent to the Python expression <code>issubclass(self, T)</code>, if the type
|
||
<code>T</code> is known at compile time.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.mro" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/typeobject.rs.html#210-229">Source</a><a href="#method.mro" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyTypeMethods.html#tymethod.mro" class="fn">mro</a>(&self) -> <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyTuple.html" title="struct pyo3::types::PyTuple">PyTuple</a>></h4></section></summary><div class='docblock'>Return the method resolution order for this type. <a href="../types/trait.PyTypeMethods.html#tymethod.mro">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.bases" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/typeobject.rs.html#231-250">Source</a><a href="#method.bases" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyTypeMethods.html#tymethod.bases" class="fn">bases</a>(&self) -> <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyTuple.html" title="struct pyo3::types::PyTuple">PyTuple</a>></h4></section></summary><div class='docblock'>Return Python bases <a href="../types/trait.PyTypeMethods.html#tymethod.bases">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PyTzInfoAccess%3C'py%3E-for-Bound%3C'py,+PyDateTime%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/datetime.rs.html#472-504">Source</a><a href="#impl-PyTzInfoAccess%3C'py%3E-for-Bound%3C'py,+PyDateTime%3E" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="../types/trait.PyTzInfoAccess.html" title="trait pyo3::types::PyTzInfoAccess">PyTzInfoAccess</a><'py> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyDateTime.html" title="struct pyo3::types::PyDateTime">PyDateTime</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.get_tzinfo" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/datetime.rs.html#473-503">Source</a><a href="#method.get_tzinfo" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyTzInfoAccess.html#tymethod.get_tzinfo" class="fn">get_tzinfo</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.85.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyTzInfo.html" title="struct pyo3::types::PyTzInfo">PyTzInfo</a>>></h4></section></summary><div class='docblock'>Returns the tzinfo (which may be None). <a href="../types/trait.PyTzInfoAccess.html#tymethod.get_tzinfo">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.get_tzinfo_bound" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/datetime.rs.html#184-186">Source</a><a href="#method.get_tzinfo_bound" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyTzInfoAccess.html#method.get_tzinfo_bound" class="fn">get_tzinfo_bound</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.85.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyTzInfo.html" title="struct pyo3::types::PyTzInfo">PyTzInfo</a>>></h4></section></summary><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated since 0.23.0: renamed to <code>PyTzInfoAccess::get_tzinfo</code></span></div></span><div class='docblock'>Deprecated name for <a href="../types/trait.PyTzInfoAccess.html#tymethod.get_tzinfo" title="method pyo3::types::PyTzInfoAccess::get_tzinfo"><code>PyTzInfoAccess::get_tzinfo</code></a>.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PyTzInfoAccess%3C'py%3E-for-Bound%3C'py,+PyTime%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/datetime.rs.html#624-656">Source</a><a href="#impl-PyTzInfoAccess%3C'py%3E-for-Bound%3C'py,+PyTime%3E" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="../types/trait.PyTzInfoAccess.html" title="trait pyo3::types::PyTzInfoAccess">PyTzInfoAccess</a><'py> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyTime.html" title="struct pyo3::types::PyTime">PyTime</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.get_tzinfo-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/datetime.rs.html#625-655">Source</a><a href="#method.get_tzinfo-1" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyTzInfoAccess.html#tymethod.get_tzinfo" class="fn">get_tzinfo</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.85.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyTzInfo.html" title="struct pyo3::types::PyTzInfo">PyTzInfo</a>>></h4></section></summary><div class='docblock'>Returns the tzinfo (which may be None). <a href="../types/trait.PyTzInfoAccess.html#tymethod.get_tzinfo">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.get_tzinfo_bound-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/datetime.rs.html#184-186">Source</a><a href="#method.get_tzinfo_bound-1" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyTzInfoAccess.html#method.get_tzinfo_bound" class="fn">get_tzinfo_bound</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.85.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyTzInfo.html" title="struct pyo3::types::PyTzInfo">PyTzInfo</a>>></h4></section></summary><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated since 0.23.0: renamed to <code>PyTzInfoAccess::get_tzinfo</code></span></div></span><div class='docblock'>Deprecated name for <a href="../types/trait.PyTzInfoAccess.html#tymethod.get_tzinfo" title="method pyo3::types::PyTzInfoAccess::get_tzinfo"><code>PyTzInfoAccess::get_tzinfo</code></a>.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PyWeakrefMethods%3C'py%3E-for-Bound%3C'py,+PyWeakref%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/weakref/anyref.rs.html#394-403">Source</a><a href="#impl-PyWeakrefMethods%3C'py%3E-for-Bound%3C'py,+PyWeakref%3E" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="../types/trait.PyWeakrefMethods.html" title="trait pyo3::types::PyWeakrefMethods">PyWeakrefMethods</a><'py> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyWeakref.html" title="struct pyo3::types::PyWeakref">PyWeakref</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.upgrade" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/weakref/anyref.rs.html#395-402">Source</a><a href="#method.upgrade" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyWeakrefMethods.html#tymethod.upgrade" class="fn">upgrade</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.85.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<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>>></h4></section></summary><div class='docblock'>Upgrade the weakref to a Bound <a href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny"><code>PyAny</code></a> reference to the target object if possible. <a href="../types/trait.PyWeakrefMethods.html#tymethod.upgrade">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.upgrade_as" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/weakref/anyref.rs.html#103-111">Source</a><a href="#method.upgrade_as" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyWeakrefMethods.html#method.upgrade_as" class="fn">upgrade_as</a><T>(&self) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<a class="enum" href="https://doc.rust-lang.org/1.85.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<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></h4></section></summary><div class='docblock'>Upgrade the weakref to a direct Bound object reference. <a href="../types/trait.PyWeakrefMethods.html#method.upgrade_as">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.upgrade_as_unchecked" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/weakref/anyref.rs.html#183-185">Source</a><a href="#method.upgrade_as_unchecked" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="../types/trait.PyWeakrefMethods.html#method.upgrade_as_unchecked" class="fn">upgrade_as_unchecked</a><T>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.85.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, T>></h4></section></summary><div class='docblock'>Upgrade the weakref to a direct Bound object reference unchecked. The type of the recovered object is not checked before downcasting, this could lead to unexpected behavior. Use only when absolutely certain the type can be guaranteed. The <code>weakref</code> may still return <code>None</code>. <a href="../types/trait.PyWeakrefMethods.html#method.upgrade_as_unchecked">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.upgrade_as_exact" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/weakref/anyref.rs.html#253-261">Source</a><a href="#method.upgrade_as_exact" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyWeakrefMethods.html#method.upgrade_as_exact" class="fn">upgrade_as_exact</a><T>(&self) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<a class="enum" href="https://doc.rust-lang.org/1.85.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<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.PyTypeInfo.html" title="trait pyo3::type_object::PyTypeInfo">PyTypeInfo</a>,</div></h4></section></summary><div class='docblock'>Upgrade the weakref to a exact direct Bound object reference. <a href="../types/trait.PyWeakrefMethods.html#method.upgrade_as_exact">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.get_object" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/weakref/anyref.rs.html#383-391">Source</a><a href="#method.get_object" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyWeakrefMethods.html#method.get_object" class="fn">get_object</a>(&self) -> <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>></h4></section></summary><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated since 0.23.0: Use <code>upgrade</code> instead</span></div></span><div class='docblock'>Retrieve to a Bound object pointed to by the weakref. <a href="../types/trait.PyWeakrefMethods.html#method.get_object">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PyWeakrefMethods%3C'py%3E-for-Bound%3C'py,+PyWeakrefProxy%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/weakref/proxy.rs.html#191-200">Source</a><a href="#impl-PyWeakrefMethods%3C'py%3E-for-Bound%3C'py,+PyWeakrefProxy%3E" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="../types/trait.PyWeakrefMethods.html" title="trait pyo3::types::PyWeakrefMethods">PyWeakrefMethods</a><'py> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyWeakrefProxy.html" title="struct pyo3::types::PyWeakrefProxy">PyWeakrefProxy</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.upgrade-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/weakref/proxy.rs.html#192-199">Source</a><a href="#method.upgrade-1" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyWeakrefMethods.html#tymethod.upgrade" class="fn">upgrade</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.85.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<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>>></h4></section></summary><div class='docblock'>Upgrade the weakref to a Bound <a href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny"><code>PyAny</code></a> reference to the target object if possible. <a href="../types/trait.PyWeakrefMethods.html#tymethod.upgrade">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.upgrade_as-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/weakref/anyref.rs.html#103-111">Source</a><a href="#method.upgrade_as-1" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyWeakrefMethods.html#method.upgrade_as" class="fn">upgrade_as</a><T>(&self) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<a class="enum" href="https://doc.rust-lang.org/1.85.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<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></h4></section></summary><div class='docblock'>Upgrade the weakref to a direct Bound object reference. <a href="../types/trait.PyWeakrefMethods.html#method.upgrade_as">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.upgrade_as_unchecked-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/weakref/anyref.rs.html#183-185">Source</a><a href="#method.upgrade_as_unchecked-1" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="../types/trait.PyWeakrefMethods.html#method.upgrade_as_unchecked" class="fn">upgrade_as_unchecked</a><T>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.85.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, T>></h4></section></summary><div class='docblock'>Upgrade the weakref to a direct Bound object reference unchecked. The type of the recovered object is not checked before downcasting, this could lead to unexpected behavior. Use only when absolutely certain the type can be guaranteed. The <code>weakref</code> may still return <code>None</code>. <a href="../types/trait.PyWeakrefMethods.html#method.upgrade_as_unchecked">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.upgrade_as_exact-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/weakref/anyref.rs.html#253-261">Source</a><a href="#method.upgrade_as_exact-1" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyWeakrefMethods.html#method.upgrade_as_exact" class="fn">upgrade_as_exact</a><T>(&self) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<a class="enum" href="https://doc.rust-lang.org/1.85.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<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.PyTypeInfo.html" title="trait pyo3::type_object::PyTypeInfo">PyTypeInfo</a>,</div></h4></section></summary><div class='docblock'>Upgrade the weakref to a exact direct Bound object reference. <a href="../types/trait.PyWeakrefMethods.html#method.upgrade_as_exact">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.get_object-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/weakref/anyref.rs.html#383-391">Source</a><a href="#method.get_object-1" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyWeakrefMethods.html#method.get_object" class="fn">get_object</a>(&self) -> <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>></h4></section></summary><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated since 0.23.0: Use <code>upgrade</code> instead</span></div></span><div class='docblock'>Retrieve to a Bound object pointed to by the weakref. <a href="../types/trait.PyWeakrefMethods.html#method.get_object">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PyWeakrefMethods%3C'py%3E-for-Bound%3C'py,+PyWeakrefReference%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/weakref/reference.rs.html#200-209">Source</a><a href="#impl-PyWeakrefMethods%3C'py%3E-for-Bound%3C'py,+PyWeakrefReference%3E" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="../types/trait.PyWeakrefMethods.html" title="trait pyo3::types::PyWeakrefMethods">PyWeakrefMethods</a><'py> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyWeakrefReference.html" title="struct pyo3::types::PyWeakrefReference">PyWeakrefReference</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.upgrade-2" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/weakref/reference.rs.html#201-208">Source</a><a href="#method.upgrade-2" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyWeakrefMethods.html#tymethod.upgrade" class="fn">upgrade</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.85.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<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>>></h4></section></summary><div class='docblock'>Upgrade the weakref to a Bound <a href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny"><code>PyAny</code></a> reference to the target object if possible. <a href="../types/trait.PyWeakrefMethods.html#tymethod.upgrade">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.upgrade_as-2" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/weakref/anyref.rs.html#103-111">Source</a><a href="#method.upgrade_as-2" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyWeakrefMethods.html#method.upgrade_as" class="fn">upgrade_as</a><T>(&self) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<a class="enum" href="https://doc.rust-lang.org/1.85.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<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></h4></section></summary><div class='docblock'>Upgrade the weakref to a direct Bound object reference. <a href="../types/trait.PyWeakrefMethods.html#method.upgrade_as">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.upgrade_as_unchecked-2" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/weakref/anyref.rs.html#183-185">Source</a><a href="#method.upgrade_as_unchecked-2" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="../types/trait.PyWeakrefMethods.html#method.upgrade_as_unchecked" class="fn">upgrade_as_unchecked</a><T>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.85.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, T>></h4></section></summary><div class='docblock'>Upgrade the weakref to a direct Bound object reference unchecked. The type of the recovered object is not checked before downcasting, this could lead to unexpected behavior. Use only when absolutely certain the type can be guaranteed. The <code>weakref</code> may still return <code>None</code>. <a href="../types/trait.PyWeakrefMethods.html#method.upgrade_as_unchecked">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.upgrade_as_exact-2" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/weakref/anyref.rs.html#253-261">Source</a><a href="#method.upgrade_as_exact-2" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyWeakrefMethods.html#method.upgrade_as_exact" class="fn">upgrade_as_exact</a><T>(&self) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<a class="enum" href="https://doc.rust-lang.org/1.85.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<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.PyTypeInfo.html" title="trait pyo3::type_object::PyTypeInfo">PyTypeInfo</a>,</div></h4></section></summary><div class='docblock'>Upgrade the weakref to a exact direct Bound object reference. <a href="../types/trait.PyWeakrefMethods.html#method.upgrade_as_exact">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.get_object-2" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/weakref/anyref.rs.html#383-391">Source</a><a href="#method.get_object-2" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.PyWeakrefMethods.html#method.get_object" class="fn">get_object</a>(&self) -> <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>></h4></section></summary><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated since 0.23.0: Use <code>upgrade</code> instead</span></div></span><div class='docblock'>Retrieve to a Bound object pointed to by the weakref. <a href="../types/trait.PyWeakrefMethods.html#method.get_object">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Sub%3C%26Bound%3C'py,+PyComplex%3E%3E-for-Bound%3C'py,+PyComplex%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/complex.rs.html#106">Source</a><a href="#impl-Sub%3C%26Bound%3C'py,+PyComplex%3E%3E-for-Bound%3C'py,+PyComplex%3E" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Sub.html" title="trait core::ops::arith::Sub">Sub</a><&<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>>> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Output-10" class="associatedtype trait-impl"><a class="src rightside" href="../../src/pyo3/types/complex.rs.html#106">Source</a><a href="#associatedtype.Output-10" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Sub.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>></h4></section></summary><div class='docblock'>The resulting type after applying the <code>-</code> operator.</div></details><details class="toggle method-toggle" open><summary><section id="method.sub-4" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/complex.rs.html#106">Source</a><a href="#method.sub-4" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Sub.html#tymethod.sub" class="fn">sub</a>(self, other: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>>) -> <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>></h4></section></summary><div class='docblock'>Performs the <code>-</code> operation. <a href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Sub.html#tymethod.sub">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Sub%3CBound%3C'py,+PyComplex%3E%3E-for-%26Bound%3C'py,+PyComplex%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/complex.rs.html#106">Source</a><a href="#impl-Sub%3CBound%3C'py,+PyComplex%3E%3E-for-%26Bound%3C'py,+PyComplex%3E" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Sub.html" title="trait core::ops::arith::Sub">Sub</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>>> for &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Output-8" class="associatedtype trait-impl"><a class="src rightside" href="../../src/pyo3/types/complex.rs.html#106">Source</a><a href="#associatedtype.Output-8" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Sub.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>></h4></section></summary><div class='docblock'>The resulting type after applying the <code>-</code> operator.</div></details><details class="toggle method-toggle" open><summary><section id="method.sub-2" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/complex.rs.html#106">Source</a><a href="#method.sub-2" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Sub.html#tymethod.sub" class="fn">sub</a>(self, other: <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>>) -> <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>></h4></section></summary><div class='docblock'>Performs the <code>-</code> operation. <a href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Sub.html#tymethod.sub">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Sub-for-%26Bound%3C'py,+PyComplex%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/complex.rs.html#106">Source</a><a href="#impl-Sub-for-%26Bound%3C'py,+PyComplex%3E" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Sub.html" title="trait core::ops::arith::Sub">Sub</a> for &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Output-7" class="associatedtype trait-impl"><a class="src rightside" href="../../src/pyo3/types/complex.rs.html#106">Source</a><a href="#associatedtype.Output-7" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Sub.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>></h4></section></summary><div class='docblock'>The resulting type after applying the <code>-</code> operator.</div></details><details class="toggle method-toggle" open><summary><section id="method.sub-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/complex.rs.html#106">Source</a><a href="#method.sub-1" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Sub.html#tymethod.sub" class="fn">sub</a>(self, other: &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>>) -> <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>></h4></section></summary><div class='docblock'>Performs the <code>-</code> operation. <a href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Sub.html#tymethod.sub">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Sub-for-Bound%3C'py,+PyComplex%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/complex.rs.html#106">Source</a><a href="#impl-Sub-for-Bound%3C'py,+PyComplex%3E" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Sub.html" title="trait core::ops::arith::Sub">Sub</a> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Output-9" class="associatedtype trait-impl"><a class="src rightside" href="../../src/pyo3/types/complex.rs.html#106">Source</a><a href="#associatedtype.Output-9" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Sub.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>></h4></section></summary><div class='docblock'>The resulting type after applying the <code>-</code> operator.</div></details><details class="toggle method-toggle" open><summary><section id="method.sub-3" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/complex.rs.html#106">Source</a><a href="#method.sub-3" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Sub.html#tymethod.sub" class="fn">sub</a>(self, other: <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>>) -> <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyComplex.html" title="struct pyo3::types::PyComplex">PyComplex</a>></h4></section></summary><div class='docblock'>Performs the <code>-</code> operation. <a href="https://doc.rust-lang.org/1.85.1/core/ops/arith/trait.Sub.html#tymethod.sub">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-ToPyObject-for-Bound%3C'_,+T%3E" class="impl"><a class="src rightside" href="../../src/pyo3/instance.rs.html#1773-1779">Source</a><a href="#impl-ToPyObject-for-Bound%3C'_,+T%3E" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="../conversion/trait.ToPyObject.html" title="trait pyo3::conversion::ToPyObject">ToPyObject</a> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, T></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.to_object" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/instance.rs.html#1776-1778">Source</a><a href="#method.to_object" class="anchor">§</a><h4 class="code-header">fn <a href="../conversion/trait.ToPyObject.html#tymethod.to_object" class="fn">to_object</a>(&self, py: <a class="struct" href="../marker/struct.Python.html" title="struct pyo3::marker::Python">Python</a><'_>) -> <a class="type" href="../type.PyObject.html" title="type pyo3::PyObject">PyObject</a></h4></section><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated since 0.23.0: <code>ToPyObject</code> is going to be replaced by <code>IntoPyObject</code>. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.</span></div></span></summary><div class="docblock"><p>Converts <code>&Bound</code> instance -> PyObject, increasing the reference count.</p>
|
||
</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-TryFrom%3C%26Bound%3C'py,+PyAny%3E%3E-for-Bound%3C'py,+PyByteArray%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/bytearray.rs.html#329-337">Source</a><a href="#impl-TryFrom%3C%26Bound%3C'py,+PyAny%3E%3E-for-Bound%3C'py,+PyByteArray%3E" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><&<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>>> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyByteArray.html" title="struct pyo3::types::PyByteArray">PyByteArray</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.try_from-1" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/bytearray.rs.html#334-336">Source</a><a href="#method.try_from-1" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/convert/trait.TryFrom.html#tymethod.try_from" class="fn">try_from</a>(value: &<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, Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class="docblock"><p>Creates a new Python <code>bytearray</code> object from another Python object that
|
||
implements the buffer protocol.</p>
|
||
</div></details><details class="toggle" open><summary><section id="associatedtype.Error-3" class="associatedtype trait-impl"><a class="src rightside" href="../../src/pyo3/types/bytearray.rs.html#330">Source</a><a href="#associatedtype.Error-3" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.1/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="struct" href="../struct.PyErr.html" title="struct pyo3::PyErr">PyErr</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-TryFrom%3C%26Bound%3C'py,+PyAny%3E%3E-for-Bound%3C'py,+PyMemoryView%3E" class="impl"><a class="src rightside" href="../../src/pyo3/types/memoryview.rs.html#34-42">Source</a><a href="#impl-TryFrom%3C%26Bound%3C'py,+PyAny%3E%3E-for-Bound%3C'py,+PyMemoryView%3E" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><&<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>>> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyMemoryView.html" title="struct pyo3::types::PyMemoryView">PyMemoryView</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.try_from-2" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/memoryview.rs.html#39-41">Source</a><a href="#method.try_from-2" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/convert/trait.TryFrom.html#tymethod.try_from" class="fn">try_from</a>(value: &<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, Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class="docblock"><p>Creates a new Python <code>memoryview</code> object from another Python object that
|
||
implements the buffer protocol.</p>
|
||
</div></details><details class="toggle" open><summary><section id="associatedtype.Error-4" class="associatedtype trait-impl"><a class="src rightside" href="../../src/pyo3/types/memoryview.rs.html#35">Source</a><a href="#associatedtype.Error-4" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.1/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="struct" href="../struct.PyErr.html" title="struct pyo3::PyErr">PyErr</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-TryFrom%3CBound%3C'_,+PyString%3E%3E-for-PyBackedStr" class="impl"><a class="src rightside" href="../../src/pyo3/pybacked.rs.html#58-81">Source</a><a href="#impl-TryFrom%3CBound%3C'_,+PyString%3E%3E-for-PyBackedStr" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyString.html" title="struct pyo3::types::PyString">PyString</a>>> for <a class="struct" href="../pybacked/struct.PyBackedStr.html" title="struct pyo3::pybacked::PyBackedStr">PyBackedStr</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error-2" class="associatedtype trait-impl"><a class="src rightside" href="../../src/pyo3/pybacked.rs.html#59">Source</a><a href="#associatedtype.Error-2" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.1/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="struct" href="../struct.PyErr.html" title="struct pyo3::PyErr">PyErr</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_from" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/pybacked.rs.html#60-80">Source</a><a href="#method.try_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/convert/trait.TryFrom.html#tymethod.try_from" class="fn">try_from</a>(py_string: <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'_, <a class="struct" href="../types/struct.PyString.html" title="struct pyo3::types::PyString">PyString</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, Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><section id="impl-PyCallArgs%3C'py%3E-for-%26Bound%3C'py,+PyTuple%3E" class="impl"><a class="src rightside" href="../../src/pyo3/call.rs.html#125-144">Source</a><a href="#impl-PyCallArgs%3C'py%3E-for-%26Bound%3C'py,+PyTuple%3E" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="../call/trait.PyCallArgs.html" title="trait pyo3::call::PyCallArgs">PyCallArgs</a><'py> for &<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyTuple.html" title="struct pyo3::types::PyTuple">PyTuple</a>></h3></section><section id="impl-PyCallArgs%3C'py%3E-for-Bound%3C'py,+PyTuple%3E" class="impl"><a class="src rightside" href="../../src/pyo3/call.rs.html#104-123">Source</a><a href="#impl-PyCallArgs%3C'py%3E-for-Bound%3C'py,+PyTuple%3E" class="anchor">§</a><h3 class="code-header">impl<'py> <a class="trait" href="../call/trait.PyCallArgs.html" title="trait pyo3::call::PyCallArgs">PyCallArgs</a><'py> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyTuple.html" title="struct pyo3::types::PyTuple">PyTuple</a>></h3></section></div><h2 id="synthetic-implementations" class="section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor">§</a></h2><div id="synthetic-implementations-list"><section id="impl-Freeze-for-Bound%3C'py,+T%3E" class="impl"><a href="#impl-Freeze-for-Bound%3C'py,+T%3E" class="anchor">§</a><h3 class="code-header">impl<'py, T> <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, T></h3></section><section id="impl-RefUnwindSafe-for-Bound%3C'py,+T%3E" class="impl"><a href="#impl-RefUnwindSafe-for-Bound%3C'py,+T%3E" class="anchor">§</a><h3 class="code-header">impl<'py, T> <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> 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="https://doc.rust-lang.org/1.85.1/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,</div></h3></section><section id="impl-Send-for-Bound%3C'py,+T%3E" class="impl"><a href="#impl-Send-for-Bound%3C'py,+T%3E" class="anchor">§</a><h3 class="code-header">impl<'py, T> !<a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, T></h3></section><section id="impl-Sync-for-Bound%3C'py,+T%3E" class="impl"><a href="#impl-Sync-for-Bound%3C'py,+T%3E" class="anchor">§</a><h3 class="code-header">impl<'py, T> !<a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, T></h3></section><section id="impl-Unpin-for-Bound%3C'py,+T%3E" class="impl"><a href="#impl-Unpin-for-Bound%3C'py,+T%3E" class="anchor">§</a><h3 class="code-header">impl<'py, T> <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> 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="https://doc.rust-lang.org/1.85.1/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,</div></h3></section><section id="impl-UnwindSafe-for-Bound%3C'py,+T%3E" class="impl"><a href="#impl-UnwindSafe-for-Bound%3C'py,+T%3E" class="anchor">§</a><h3 class="code-header">impl<'py, T> <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> 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="https://doc.rust-lang.org/1.85.1/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>,</div></h3></section></div><h2 id="blanket-implementations" class="section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor">§</a></h2><div id="blanket-implementations-list"><details class="toggle implementors-toggle"><summary><section id="impl-Any-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.1/src/core/any.rs.html#138">Source</a><a href="#impl-Any-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T<div class="where">where
|
||
T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.1/src/core/any.rs.html#139">Source</a><a href="#method.type_id" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/any/trait.Any.html#tymethod.type_id" class="fn">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.85.1/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/1.85.1/core/any/trait.Any.html#tymethod.type_id">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.1/src/core/borrow.rs.html#209">Source</a><a href="#impl-Borrow%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T<div class="where">where
|
||
T: ?<a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow-1" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.1/src/core/borrow.rs.html#211">Source</a><a href="#method.borrow-1" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/borrow/trait.Borrow.html#tymethod.borrow" class="fn">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&T</a></h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.85.1/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.1/src/core/borrow.rs.html#217">Source</a><a href="#impl-BorrowMut%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T<div class="where">where
|
||
T: ?<a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow_mut-1" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.1/src/core/borrow.rs.html#218">Source</a><a href="#method.borrow_mut-1" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fn">borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&mut T</a></h4></section></summary><div class='docblock'>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.85.1/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-CloneToUninit-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.1/src/core/clone.rs.html#273">Source</a><a href="#impl-CloneToUninit-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/clone/trait.CloneToUninit.html" title="trait core::clone::CloneToUninit">CloneToUninit</a> for T<div class="where">where
|
||
T: <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></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.clone_to_uninit" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.1/src/core/clone.rs.html#275">Source</a><a href="#method.clone_to_uninit" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="https://doc.rust-lang.org/1.85.1/core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit" class="fn">clone_to_uninit</a>(&self, dst: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.pointer.html">*mut </a><a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.u8.html">u8</a>)</h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>clone_to_uninit</code>)</span></div></span><div class='docblock'>Performs copy-assignment from <code>self</code> to <code>dst</code>. <a href="https://doc.rust-lang.org/1.85.1/core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-From%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.1/src/core/convert/mod.rs.html#767">Source</a><a href="#impl-From%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from-7" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.1/src/core/convert/mod.rs.html#770">Source</a><a href="#method.from-7" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(t: T) -> T</h4></section></summary><div class="docblock"><p>Returns the argument unchanged.</p>
|
||
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromPyObjectBound%3C'_,+'py%3E-for-T" class="impl"><a class="src rightside" href="../../src/pyo3/conversion.rs.html#530-542">Source</a><a href="#impl-FromPyObjectBound%3C'_,+'py%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<'py, T> <a class="trait" href="../conversion/trait.FromPyObjectBound.html" title="trait pyo3::conversion::FromPyObjectBound">FromPyObjectBound</a><'_, 'py> for T<div class="where">where
|
||
T: <a class="trait" href="../conversion/trait.FromPyObject.html" title="trait pyo3::conversion::FromPyObject">FromPyObject</a><'py>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from_py_object_bound" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/conversion.rs.html#534-536">Source</a><a href="#method.from_py_object_bound" class="anchor">§</a><h4 class="code-header">fn <a href="../conversion/trait.FromPyObjectBound.html#tymethod.from_py_object_bound" class="fn">from_py_object_bound</a>(ob: <a class="struct" href="../struct.Borrowed.html" title="struct pyo3::Borrowed">Borrowed</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><T, <a class="struct" href="../struct.PyErr.html" title="struct pyo3::PyErr">PyErr</a>></h4></section></summary><div class='docblock'>Extracts <code>Self</code> from the bound smart pointer <code>obj</code>. <a href="../conversion/trait.FromPyObjectBound.html#tymethod.from_py_object_bound">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Into%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.1/src/core/convert/mod.rs.html#750-752">Source</a><a href="#impl-Into%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T<div class="where">where
|
||
U: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.1/src/core/convert/mod.rs.html#760">Source</a><a href="#method.into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/convert/trait.Into.html#tymethod.into" class="fn">into</a>(self) -> U</h4></section></summary><div class="docblock"><p>Calls <code>U::from(self)</code>.</p>
|
||
<p>That is, this conversion is whatever the implementation of
|
||
<code><a href="https://doc.rust-lang.org/1.85.1/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for U</code> chooses to do.</p>
|
||
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-IntoIterator-for-I" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/collect.rs.html#317">Source</a><a href="#impl-IntoIterator-for-I" class="anchor">§</a><h3 class="code-header">impl<I> <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a> for I<div class="where">where
|
||
I: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Item-12" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/collect.rs.html#318">Source</a><a href="#associatedtype.Item-12" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" class="associatedtype">Item</a> = <I as <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a></h4></section></summary><div class='docblock'>The type of the elements being iterated over.</div></details><details class="toggle" open><summary><section id="associatedtype.IntoIter-11" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/collect.rs.html#319">Source</a><a href="#associatedtype.IntoIter-11" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter" class="associatedtype">IntoIter</a> = I</h4></section></summary><div class='docblock'>Which kind of iterator are we turning this into?</div></details><details class="toggle method-toggle" open><summary><section id="method.into_iter-11" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.1/src/core/iter/traits/collect.rs.html#322">Source</a><a href="#method.into_iter-11" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter" class="fn">into_iter</a>(self) -> I</h4></section></summary><div class='docblock'>Creates an iterator from a value. <a href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-IntoPyDict%3C'py%3E-for-I" class="impl"><a class="src rightside" href="../../src/pyo3/types/dict.rs.html#788-801">Source</a><a href="#impl-IntoPyDict%3C'py%3E-for-I" class="anchor">§</a><h3 class="code-header">impl<'py, T, I> <a class="trait" href="../types/trait.IntoPyDict.html" title="trait pyo3::types::IntoPyDict">IntoPyDict</a><'py> for I<div class="where">where
|
||
T: PyDictItem<'py>,
|
||
I: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = T>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into_py_dict" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/dict.rs.html#793-800">Source</a><a href="#method.into_py_dict" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.IntoPyDict.html#tymethod.into_py_dict" class="fn">into_py_dict</a>(self, py: <a class="struct" href="../marker/struct.Python.html" title="struct pyo3::marker::Python">Python</a><'py>) -> <a class="enum" href="https://doc.rust-lang.org/1.85.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyDict.html" title="struct pyo3::types::PyDict">PyDict</a>>, <a class="struct" href="../struct.PyErr.html" title="struct pyo3::PyErr">PyErr</a>></h4></section></summary><div class='docblock'>Converts self into a <code>PyDict</code> object pointer. Whether pointer owned or borrowed
|
||
depends on implementation.</div></details><details class="toggle method-toggle" open><summary><section id="method.into_py_dict_bound" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/types/dict.rs.html#783-785">Source</a><a href="#method.into_py_dict_bound" class="anchor">§</a><h4 class="code-header">fn <a href="../types/trait.IntoPyDict.html#method.into_py_dict_bound" class="fn">into_py_dict_bound</a>(self, py: <a class="struct" href="../marker/struct.Python.html" title="struct pyo3::marker::Python">Python</a><'py>) -> <a class="struct" href="../struct.Bound.html" title="struct pyo3::Bound">Bound</a><'py, <a class="struct" href="../types/struct.PyDict.html" title="struct pyo3::types::PyDict">PyDict</a>></h4></section></summary><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated since 0.23.0: renamed to <code>IntoPyDict::into_py_dict</code></span></div></span><div class='docblock'>Deprecated name for <a href="../types/trait.IntoPyDict.html#tymethod.into_py_dict" title="method pyo3::types::IntoPyDict::into_py_dict"><code>IntoPyDict::into_py_dict</code></a>.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-IntoPyObjectExt%3C'py%3E-for-T" class="impl"><a class="src rightside" href="../../src/pyo3/conversion.rs.html#401">Source</a><a href="#impl-IntoPyObjectExt%3C'py%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<'py, T> <a class="trait" href="../conversion/trait.IntoPyObjectExt.html" title="trait pyo3::conversion::IntoPyObjectExt">IntoPyObjectExt</a><'py> for T<div class="where">where
|
||
T: <a class="trait" href="../conversion/trait.IntoPyObject.html" title="trait pyo3::conversion::IntoPyObject">IntoPyObject</a><'py>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into_bound_py_any" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/conversion.rs.html#370-375">Source</a><a href="#method.into_bound_py_any" class="anchor">§</a><h4 class="code-header">fn <a href="../conversion/trait.IntoPyObjectExt.html#method.into_bound_py_any" class="fn">into_bound_py_any</a>(self, py: <a class="struct" href="../marker/struct.Python.html" title="struct pyo3::marker::Python">Python</a><'py>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<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>>></h4></section></summary><div class='docblock'>Converts <code>self</code> into an owned Python object, dropping type information.</div></details><details class="toggle method-toggle" open><summary><section id="method.into_py_any" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/conversion.rs.html#380-385">Source</a><a href="#method.into_py_any" class="anchor">§</a><h4 class="code-header">fn <a href="../conversion/trait.IntoPyObjectExt.html#method.into_py_any" class="fn">into_py_any</a>(self, py: <a class="struct" href="../marker/struct.Python.html" title="struct pyo3::marker::Python">Python</a><'py>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><<a class="struct" href="../struct.Py.html" title="struct pyo3::Py">Py</a><<a class="struct" href="../types/struct.PyAny.html" title="struct pyo3::types::PyAny">PyAny</a>>></h4></section></summary><div class='docblock'>Converts <code>self</code> into an owned Python object, dropping type information and unbinding it
|
||
from the <code>'py</code> lifetime.</div></details><details class="toggle method-toggle" open><summary><section id="method.into_pyobject_or_pyerr" class="method trait-impl"><a class="src rightside" href="../../src/pyo3/conversion.rs.html#393-398">Source</a><a href="#method.into_pyobject_or_pyerr" class="anchor">§</a><h4 class="code-header">fn <a href="../conversion/trait.IntoPyObjectExt.html#method.into_pyobject_or_pyerr" class="fn">into_pyobject_or_pyerr</a>(self, py: <a class="struct" href="../marker/struct.Python.html" title="struct pyo3::marker::Python">Python</a><'py>) -> <a class="type" href="../type.PyResult.html" title="type pyo3::PyResult">PyResult</a><Self::<a class="associatedtype" href="../conversion/trait.IntoPyObject.html#associatedtype.Output" title="type pyo3::conversion::IntoPyObject::Output">Output</a>></h4></section></summary><div class='docblock'>Converts <code>self</code> into a Python object. <a href="../conversion/trait.IntoPyObjectExt.html#method.into_pyobject_or_pyerr">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Receiver-for-P" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.1/src/core/ops/deref.rs.html#418-420">Source</a><a href="#impl-Receiver-for-P" class="anchor">§</a><h3 class="code-header">impl<P, T> <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/deref/trait.Receiver.html" title="trait core::ops::deref::Receiver">Receiver</a> for P<div class="where">where
|
||
P: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a><Target = T> + ?<a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
T: ?<a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Target-3" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.1/src/core/ops/deref.rs.html#422">Source</a><a href="#associatedtype.Target-3" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.1/core/ops/deref/trait.Receiver.html#associatedtype.Target" class="associatedtype">Target</a> = T</h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>arbitrary_self_types</code>)</span></div></span><div class='docblock'>The target type on which the method may be called.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ToOwned-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.1/src/alloc/borrow.rs.html#82-84">Source</a><a href="#impl-ToOwned-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.85.1/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> for T<div class="where">where
|
||
T: <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></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Owned" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.1/src/alloc/borrow.rs.html#86">Source</a><a href="#associatedtype.Owned" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.1/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" class="associatedtype">Owned</a> = T</h4></section></summary><div class='docblock'>The resulting type after obtaining ownership.</div></details><details class="toggle method-toggle" open><summary><section id="method.to_owned" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.1/src/alloc/borrow.rs.html#87">Source</a><a href="#method.to_owned" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/alloc/borrow/trait.ToOwned.html#tymethod.to_owned" class="fn">to_owned</a>(&self) -> T</h4></section></summary><div class='docblock'>Creates owned data from borrowed data, usually by cloning. <a href="https://doc.rust-lang.org/1.85.1/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clone_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.1/src/alloc/borrow.rs.html#91">Source</a><a href="#method.clone_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/alloc/borrow/trait.ToOwned.html#method.clone_into" class="fn">clone_into</a>(&self, target: <a class="primitive" href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&mut T</a>)</h4></section></summary><div class='docblock'>Uses borrowed data to replace owned data, usually by cloning. <a href="https://doc.rust-lang.org/1.85.1/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ToString-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.1/src/alloc/string.rs.html#2677">Source</a><a href="#impl-ToString-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.85.1/alloc/string/trait.ToString.html" title="trait alloc::string::ToString">ToString</a> for T<div class="where">where
|
||
T: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.to_string" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.1/src/alloc/string.rs.html#2679">Source</a><a href="#method.to_string" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/alloc/string/trait.ToString.html#tymethod.to_string" class="fn">to_string</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.85.1/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></h4></section></summary><div class='docblock'>Converts the given value to a <code>String</code>. <a href="https://doc.rust-lang.org/1.85.1/alloc/string/trait.ToString.html#tymethod.to_string">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryFrom%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.1/src/core/convert/mod.rs.html#807-809">Source</a><a href="#impl-TryFrom%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T<div class="where">where
|
||
U: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error-6" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.1/src/core/convert/mod.rs.html#811">Source</a><a href="#associatedtype.Error-6" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.1/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/1.85.1/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_from-3" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.1/src/core/convert/mod.rs.html#814">Source</a><a href="#method.try_from-3" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/convert/trait.TryFrom.html#tymethod.try_from" class="fn">try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/1.85.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryInto%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.1/src/core/convert/mod.rs.html#792-794">Source</a><a href="#impl-TryInto%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T<div class="where">where
|
||
U: <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error-5" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.1/src/core/convert/mod.rs.html#796">Source</a><a href="#associatedtype.Error-5" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.1/core/convert/trait.TryInto.html#associatedtype.Error" class="associatedtype">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.1/src/core/convert/mod.rs.html#799">Source</a><a href="#method.try_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.1/core/convert/trait.TryInto.html#tymethod.try_into" class="fn">try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/1.85.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/1.85.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.1/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details></div><script type="text/json" id="notable-traits-data">{"&[u8]":"<h3>Notable traits for <code>&[<a class=\"primitive\" href=\"https://doc.rust-lang.org/1.85.1/std/primitive.u8.html\">u8</a>]</code></h3><pre><code><div class=\"where\">impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.85.1/std/io/trait.Read.html\" title=\"trait std::io::Read\">Read</a> for &[<a class=\"primitive\" href=\"https://doc.rust-lang.org/1.85.1/std/primitive.u8.html\">u8</a>]</div>","&mut [u8]":"<h3>Notable traits for <code>&mut [<a class=\"primitive\" href=\"https://doc.rust-lang.org/1.85.1/std/primitive.u8.html\">u8</a>]</code></h3><pre><code><div class=\"where\">impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.85.1/std/io/trait.Write.html\" title=\"trait std::io::Write\">Write</a> for &mut [<a class=\"primitive\" href=\"https://doc.rust-lang.org/1.85.1/std/primitive.u8.html\">u8</a>]</div>","BorrowedTupleIterator<'a, 'py>":"<h3>Notable traits for <code><a class=\"struct\" href=\"../types/iter/struct.BorrowedTupleIterator.html\" title=\"struct pyo3::types::iter::BorrowedTupleIterator\">BorrowedTupleIterator</a><'a, 'py></code></h3><pre><code><div class=\"where\">impl<'a, 'py> <a class=\"trait\" href=\"https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html\" title=\"trait core::iter::traits::iterator::Iterator\">Iterator</a> for <a class=\"struct\" href=\"../types/iter/struct.BorrowedTupleIterator.html\" title=\"struct pyo3::types::iter::BorrowedTupleIterator\">BorrowedTupleIterator</a><'a, 'py></div><div class=\"where\"> type <a href=\"https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item\" class=\"associatedtype\">Item</a> = <a class=\"struct\" href=\"../struct.Borrowed.html\" title=\"struct pyo3::Borrowed\">Borrowed</a><'a, 'py, <a class=\"struct\" href=\"../types/struct.PyAny.html\" title=\"struct pyo3::types::PyAny\">PyAny</a>>;</div>","BoundDictIterator<'py>":"<h3>Notable traits for <code><a class=\"struct\" href=\"../types/iter/struct.BoundDictIterator.html\" title=\"struct pyo3::types::iter::BoundDictIterator\">BoundDictIterator</a><'py></code></h3><pre><code><div class=\"where\">impl<'py> <a class=\"trait\" href=\"https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html\" title=\"trait core::iter::traits::iterator::Iterator\">Iterator</a> for <a class=\"struct\" href=\"../types/iter/struct.BoundDictIterator.html\" title=\"struct pyo3::types::iter::BoundDictIterator\">BoundDictIterator</a><'py></div><div class=\"where\"> type <a href=\"https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item\" class=\"associatedtype\">Item</a> = (<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=\"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>>);</div>","BoundFrozenSetIterator<'py>":"<h3>Notable traits for <code><a class=\"struct\" href=\"../types/iter/struct.BoundFrozenSetIterator.html\" title=\"struct pyo3::types::iter::BoundFrozenSetIterator\">BoundFrozenSetIterator</a><'py></code></h3><pre><code><div class=\"where\">impl<'py> <a class=\"trait\" href=\"https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html\" title=\"trait core::iter::traits::iterator::Iterator\">Iterator</a> for <a class=\"struct\" href=\"../types/iter/struct.BoundFrozenSetIterator.html\" title=\"struct pyo3::types::iter::BoundFrozenSetIterator\">BoundFrozenSetIterator</a><'py></div><div class=\"where\"> type <a href=\"https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item\" class=\"associatedtype\">Item</a> = <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>>;</div>","BoundListIterator<'py>":"<h3>Notable traits for <code><a class=\"struct\" href=\"../types/iter/struct.BoundListIterator.html\" title=\"struct pyo3::types::iter::BoundListIterator\">BoundListIterator</a><'py></code></h3><pre><code><div class=\"where\">impl<'py> <a class=\"trait\" href=\"https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html\" title=\"trait core::iter::traits::iterator::Iterator\">Iterator</a> for <a class=\"struct\" href=\"../types/iter/struct.BoundListIterator.html\" title=\"struct pyo3::types::iter::BoundListIterator\">BoundListIterator</a><'py></div><div class=\"where\"> type <a href=\"https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item\" class=\"associatedtype\">Item</a> = <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>>;</div>","BoundSetIterator<'py>":"<h3>Notable traits for <code><a class=\"struct\" href=\"../types/iter/struct.BoundSetIterator.html\" title=\"struct pyo3::types::iter::BoundSetIterator\">BoundSetIterator</a><'py></code></h3><pre><code><div class=\"where\">impl<'py> <a class=\"trait\" href=\"https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html\" title=\"trait core::iter::traits::iterator::Iterator\">Iterator</a> for <a class=\"struct\" href=\"../types/iter/struct.BoundSetIterator.html\" title=\"struct pyo3::types::iter::BoundSetIterator\">BoundSetIterator</a><'py></div><div class=\"where\"> type <a href=\"https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item\" class=\"associatedtype\">Item</a> = <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>>;</div>","BoundTupleIterator<'py>":"<h3>Notable traits for <code><a class=\"struct\" href=\"../types/iter/struct.BoundTupleIterator.html\" title=\"struct pyo3::types::iter::BoundTupleIterator\">BoundTupleIterator</a><'py></code></h3><pre><code><div class=\"where\">impl<'py> <a class=\"trait\" href=\"https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html\" title=\"trait core::iter::traits::iterator::Iterator\">Iterator</a> for <a class=\"struct\" href=\"../types/iter/struct.BoundTupleIterator.html\" title=\"struct pyo3::types::iter::BoundTupleIterator\">BoundTupleIterator</a><'py></div><div class=\"where\"> type <a href=\"https://doc.rust-lang.org/1.85.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item\" class=\"associatedtype\">Item</a> = <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>>;</div>","Vec<u8>":"<h3>Notable traits for <code><a class=\"struct\" href=\"https://doc.rust-lang.org/1.85.1/alloc/vec/struct.Vec.html\" title=\"struct alloc::vec::Vec\">Vec</a><<a class=\"primitive\" href=\"https://doc.rust-lang.org/1.85.1/std/primitive.u8.html\">u8</a>, A></code></h3><pre><code><div class=\"where\">impl<A> <a class=\"trait\" href=\"https://doc.rust-lang.org/1.85.1/std/io/trait.Write.html\" title=\"trait std::io::Write\">Write</a> 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><<a class=\"primitive\" href=\"https://doc.rust-lang.org/1.85.1/std/primitive.u8.html\">u8</a>, A><div class=\"where\">where\n A: <a class=\"trait\" href=\"https://doc.rust-lang.org/1.85.1/core/alloc/trait.Allocator.html\" title=\"trait core::alloc::Allocator\">Allocator</a>,</div></div>"}</script></section></div></main></body></html> |