#[repr(transparent)]pub struct Py<T>(_, _);
Expand description
A GIL-independent reference to an object allocated on the Python heap.
This type does not auto-dereference to the inner object because you must prove you hold the GIL to access it. Instead, call one of its methods to access the inner object:
Py::as_ref
, to borrow a GIL-bound reference to the contained object.Py::borrow
,Py::try_borrow
,Py::borrow_mut
, orPy::try_borrow_mut
, to get a (mutable) reference to a contained pyclass, using a scheme similar to std’sRefCell
. See thePyCell
guide entry for more information.- You can call methods directly on
Py
withPy::call
,Py::call_method
and friends. These require passing in thePython<'py>
token but are otherwise similar to the corresponding methods onPyAny
.
Example: Storing Python objects in structs
As all the native Python objects only appear as references, storing them in structs doesn’t work well. For example, this won’t compile:
#[pyclass]
struct Foo<'py> {
inner: &'py PyDict,
}
impl Foo {
fn new() -> Foo {
let foo = Python::with_gil(|py| {
// `py` will only last for this scope.
// `&PyDict` derives its lifetime from `py` and
// so won't be able to outlive this closure.
let dict: &PyDict = PyDict::new(py);
// because `Foo` contains `dict` its lifetime
// is now also tied to `py`.
Foo { inner: dict }
});
// Foo is no longer valid.
// Returning it from this function is a 💥 compiler error 💥
foo
}
}
Py
<T>
can be used to get around this by converting dict
into a GIL-independent reference:
use pyo3::prelude::*;
use pyo3::types::PyDict;
#[pyclass]
struct Foo {
inner: Py<PyDict>,
}
#[pymethods]
impl Foo {
#[new]
fn __new__() -> Foo {
Python::with_gil(|py| {
let dict: Py<PyDict> = PyDict::new(py).into();
Foo { inner: dict }
})
}
}
This can also be done with other pyclasses:
use pyo3::prelude::*;
#[pyclass]
struct Bar {/* ... */}
#[pyclass]
struct Foo {
inner: Py<Bar>,
}
#[pymethods]
impl Foo {
#[new]
fn __new__() -> PyResult<Foo> {
Python::with_gil(|py| {
let bar: Py<Bar> = Py::new(py, Bar {})?;
Ok(Foo { inner: bar })
})
}
}
Example: Shared ownership of Python objects
Py<T>
can be used to share ownership of a Python object, similar to std’s Rc
<T>
.
As with Rc
<T>
, cloning it increases its reference count rather than duplicating
the underlying object.
This can be done using either Py::clone_ref
or Py
<T>
’s Clone
trait implementation.
Py::clone_ref
will be faster if you happen to be already holding the GIL.
use pyo3::conversion::AsPyPointer;
use pyo3::prelude::*;
use pyo3::types::PyDict;
Python::with_gil(|py| {
let first: Py<PyDict> = PyDict::new(py).into();
// All of these are valid syntax
let second = Py::clone_ref(&first, py);
let third = first.clone_ref(py);
let fourth = Py::clone(&first);
let fifth = first.clone();
// Disposing of our original `Py<PyDict>` just decrements the reference count.
drop(first);
// They all point to the same object
assert_eq!(second.as_ptr(), third.as_ptr());
assert_eq!(fourth.as_ptr(), fifth.as_ptr());
assert_eq!(second.as_ptr(), fourth.as_ptr());
});
Preventing reference cycles
It is easy to accidentally create reference cycles using Py
<T>
.
The Python interpreter can break these reference cycles within pyclasses if they
implement the PyGCProtocol
. If your pyclass
contains other Python objects you should implement this protocol to avoid leaking memory.
A note on Python reference counts
Dropping a Py
<T>
will eventually decrease Python’s reference count
of the pointed-to variable, allowing Python’s garbage collector to free
the associated memory, but this may not happen immediately. This is
because a Py
<T>
can be dropped at any time, but the Python reference
count can only be modified when the GIL is held.
If a Py
<T>
is dropped while its thread happens to be holding the
GIL then the Python reference count will be decreased immediately.
Otherwise, the reference count will be decreased the next time the GIL is
reacquired.
A note on Send
and Sync
Accessing this object is threadsafe, since any access to its API requires a Python<'py>
token.
As you can only get this by acquiring the GIL, Py<...>
“implements Send
and Sync
.
Implementations
sourceimpl<T> Py<T> where
T: PyClass,
impl<T> Py<T> where
T: PyClass,
sourcepub fn new(
py: Python<'_>,
value: impl Into<PyClassInitializer<T>>
) -> PyResult<Py<T>>
pub fn new(
py: Python<'_>,
value: impl Into<PyClassInitializer<T>>
) -> PyResult<Py<T>>
Creates a new instance Py<T>
of a #[pyclass]
on the Python heap.
Examples
use pyo3::prelude::*;
#[pyclass]
struct Foo {/* fields omitted */}
Python::with_gil(|py| -> PyResult<Py<Foo>> {
let foo: Py<Foo> = Py::new(py, Foo {})?;
Ok(foo)
})?;
sourceimpl<T> Py<T> where
T: PyTypeInfo,
impl<T> Py<T> where
T: PyTypeInfo,
sourcepub fn as_ref<'py>(&'py self, _py: Python<'py>) -> &'py T::AsRefTarget
pub fn as_ref<'py>(&'py self, _py: Python<'py>) -> &'py T::AsRefTarget
Borrows a GIL-bound reference to the contained T
.
By binding to the GIL lifetime, this allows the GIL-bound reference to not require
Python<'py>
for any of its methods, which makes calling methods
on it more ergonomic.
For native types, this reference is &T
. For pyclasses, this is &PyCell<T>
.
Note that the lifetime of the returned reference is the shortest of &self
and
Python<'py>
.
Consider using Py::into_ref
instead if this poses a problem.
Examples
Get access to &PyList
from Py<PyList>
:
Python::with_gil(|py| {
let list: Py<PyList> = PyList::empty(py).into();
let list: &PyList = list.as_ref(py);
assert_eq!(list.len(), 0);
});
Get access to &PyCell<MyClass>
from Py<MyClass>
:
#[pyclass]
struct MyClass {}
Python::with_gil(|py| {
let my_class: Py<MyClass> = Py::new(py, MyClass {}).unwrap();
let my_class_cell: &PyCell<MyClass> = my_class.as_ref(py);
assert!(my_class_cell.try_borrow().is_ok());
});
sourcepub fn into_ref(self, py: Python<'_>) -> &T::AsRefTarget
pub fn into_ref(self, py: Python<'_>) -> &T::AsRefTarget
Borrows a GIL-bound reference to the contained T
independently of the lifetime of T
.
This method is similar to as_ref
but consumes self
and registers the
Python object reference in PyO3’s object storage. The reference count for the Python
object will not be decreased until the GIL lifetime ends.
You should prefer using as_ref
if you can as it’ll have less overhead.
Examples
Py::as_ref
’s lifetime limitation forbids creating a function that references a
variable created inside the function.
fn new_py_any<'py>(py: Python<'py>, value: impl IntoPy<Py<PyAny>>) -> &'py PyAny {
let obj: Py<PyAny> = value.into_py(py);
// The lifetime of the return value of this function is the shortest
// of `obj` and `py`. As `obj` is owned by the current function,
// Rust won't let the return value escape this function!
obj.as_ref(py)
}
This can be solved by using Py::into_ref
instead, which does not suffer from this issue.
Note that the lifetime of the Python<'py>
token is transferred to
the returned reference.
fn new_py_any<'py>(py: Python<'py>, value: impl IntoPy<Py<PyAny>>) -> &'py PyAny {
let obj: Py<PyAny> = value.into_py(py);
// This reference's lifetime is determined by `py`'s lifetime.
// Because that originates from outside this function,
// this return value is allowed.
obj.into_ref(py)
}
sourceimpl<T> Py<T> where
T: PyClass,
impl<T> Py<T> where
T: PyClass,
sourcepub fn borrow<'py>(&'py self, py: Python<'py>) -> PyRef<'py, T>
pub fn borrow<'py>(&'py self, py: Python<'py>) -> PyRef<'py, T>
Immutably borrows the value T
.
This borrow lasts while the returned PyRef
exists.
Multiple immutable borrows can be taken out at the same time.
Equivalent to self.as_ref(py).borrow()
-
see PyCell::borrow
.
Examples
#[pyclass]
struct Foo {
inner: u8,
}
Python::with_gil(|py| -> PyResult<()> {
let foo: Py<Foo> = Py::new(py, Foo { inner: 73 })?;
let inner: &u8 = &foo.borrow(py).inner;
assert_eq!(*inner, 73);
Ok(())
})?;
Panics
Panics if the value is currently mutably borrowed. For a non-panicking variant, use
try_borrow
.
sourcepub fn borrow_mut<'py>(&'py self, py: Python<'py>) -> PyRefMut<'py, T>
pub fn borrow_mut<'py>(&'py self, py: Python<'py>) -> PyRefMut<'py, T>
Mutably borrows the value T
.
This borrow lasts while the returned PyRefMut
exists.
Equivalent to self.as_ref(py).borrow_mut()
-
see PyCell::borrow_mut
.
Examples
#[pyclass]
struct Foo {
inner: u8,
}
Python::with_gil(|py| -> PyResult<()> {
let foo: Py<Foo> = Py::new(py, Foo { inner: 73 })?;
foo.borrow_mut(py).inner = 35;
assert_eq!(foo.borrow(py).inner, 35);
Ok(())
})?;
Panics
Panics if the value is currently mutably borrowed. For a non-panicking variant, use
try_borrow_mut
.
sourcepub fn try_borrow<'py>(
&'py self,
py: Python<'py>
) -> Result<PyRef<'py, T>, PyBorrowError>
pub fn try_borrow<'py>(
&'py self,
py: Python<'py>
) -> Result<PyRef<'py, T>, PyBorrowError>
Attempts to immutably borrow the value T
, returning an error if the value is currently mutably borrowed.
The borrow lasts while the returned PyRef
exists.
This is the non-panicking variant of borrow
.
Equivalent to self.as_ref(py).borrow_mut()
-
see PyCell::try_borrow
.
sourcepub fn try_borrow_mut<'py>(
&'py self,
py: Python<'py>
) -> Result<PyRefMut<'py, T>, PyBorrowMutError>
pub fn try_borrow_mut<'py>(
&'py self,
py: Python<'py>
) -> Result<PyRefMut<'py, T>, PyBorrowMutError>
Attempts to mutably borrow the value T
, returning an error if the value is currently borrowed.
The borrow lasts while the returned PyRefMut
exists.
This is the non-panicking variant of borrow_mut
.
Equivalent to self.as_ref(py).try_borrow_mut()
-
see PyCell::try_borrow_mut
.
sourceimpl<T> Py<T>
impl<T> Py<T>
sourcepub fn is<U: AsPyPointer>(&self, o: &U) -> bool
pub fn is<U: AsPyPointer>(&self, o: &U) -> bool
Returns whether self
and other
point to the same object. To compare
the equality of two objects (the ==
operator), use eq
.
This is equivalent to the Python expression self is other
.
sourcepub fn get_refcnt(&self, _py: Python<'_>) -> isize
pub fn get_refcnt(&self, _py: Python<'_>) -> isize
Gets the reference count of the ffi::PyObject
pointer.
sourcepub fn clone_ref(&self, py: Python<'_>) -> Py<T>
pub fn clone_ref(&self, py: Python<'_>) -> Py<T>
Makes a clone of self
.
This creates another pointer to the same object, increasing its reference count.
You should prefer using this method over Clone
if you happen to be holding the GIL already.
Examples
use pyo3::conversion::AsPyPointer;
use pyo3::prelude::*;
use pyo3::types::PyDict;
Python::with_gil(|py| {
let first: Py<PyDict> = PyDict::new(py).into();
let second = Py::clone_ref(&first, py);
// Both point to the same object
assert_eq!(first.as_ptr(), second.as_ptr());
});
sourcepub fn is_none(&self, _py: Python<'_>) -> bool
pub fn is_none(&self, _py: Python<'_>) -> bool
Returns whether the object is considered to be None.
This is equivalent to the Python expression self is None
.
sourcepub fn is_true(&self, py: Python<'_>) -> PyResult<bool>
pub fn is_true(&self, py: Python<'_>) -> PyResult<bool>
Returns whether the object is considered to be true.
This is equivalent to the Python expression bool(self)
.
sourcepub fn extract<'p, D>(&'p self, py: Python<'p>) -> PyResult<D> where
D: FromPyObject<'p>,
pub fn extract<'p, D>(&'p self, py: Python<'p>) -> PyResult<D> where
D: FromPyObject<'p>,
Extracts some type from the Python object.
This is a wrapper function around FromPyObject::extract()
.
sourcepub fn getattr<N>(&self, py: Python<'_>, attr_name: N) -> PyResult<PyObject> where
N: ToPyObject,
pub fn getattr<N>(&self, py: Python<'_>, attr_name: N) -> PyResult<PyObject> where
N: ToPyObject,
Retrieves an attribute value.
This is equivalent to the Python expression self.attr_name
.
sourcepub fn setattr<N, V>(
&self,
py: Python<'_>,
attr_name: N,
value: V
) -> PyResult<()> where
N: ToPyObject,
V: ToPyObject,
pub fn setattr<N, V>(
&self,
py: Python<'_>,
attr_name: N,
value: V
) -> PyResult<()> where
N: ToPyObject,
V: ToPyObject,
Sets an attribute value.
This is equivalent to the Python expression self.attr_name = value
.
sourcepub fn call(
&self,
py: Python<'_>,
args: impl IntoPy<Py<PyTuple>>,
kwargs: Option<&PyDict>
) -> PyResult<PyObject>
pub fn call(
&self,
py: Python<'_>,
args: impl IntoPy<Py<PyTuple>>,
kwargs: Option<&PyDict>
) -> PyResult<PyObject>
Calls the object.
This is equivalent to the Python expression self(*args, **kwargs)
.
sourcepub fn call1(
&self,
py: Python<'_>,
args: impl IntoPy<Py<PyTuple>>
) -> PyResult<PyObject>
pub fn call1(
&self,
py: Python<'_>,
args: impl IntoPy<Py<PyTuple>>
) -> PyResult<PyObject>
Calls the object with only positional arguments.
This is equivalent to the Python expression self(*args)
.
sourcepub fn call0(&self, py: Python<'_>) -> PyResult<PyObject>
pub fn call0(&self, py: Python<'_>) -> PyResult<PyObject>
Calls the object without arguments.
This is equivalent to the Python expression self()
.
sourcepub fn call_method(
&self,
py: Python<'_>,
name: &str,
args: impl IntoPy<Py<PyTuple>>,
kwargs: Option<&PyDict>
) -> PyResult<PyObject>
pub fn call_method(
&self,
py: Python<'_>,
name: &str,
args: impl IntoPy<Py<PyTuple>>,
kwargs: Option<&PyDict>
) -> PyResult<PyObject>
Calls a method on the object.
This is equivalent to the Python expression self.name(*args, **kwargs)
.
sourcepub fn call_method1(
&self,
py: Python<'_>,
name: &str,
args: impl IntoPy<Py<PyTuple>>
) -> PyResult<PyObject>
pub fn call_method1(
&self,
py: Python<'_>,
name: &str,
args: impl IntoPy<Py<PyTuple>>
) -> PyResult<PyObject>
Calls a method on the object with only positional arguments.
This is equivalent to the Python expression self.name(*args)
.
sourcepub fn call_method0(&self, py: Python<'_>, name: &str) -> PyResult<PyObject>
pub fn call_method0(&self, py: Python<'_>, name: &str) -> PyResult<PyObject>
Calls a method on the object with no arguments.
This is equivalent to the Python expression self.name()
.
sourcepub unsafe fn from_owned_ptr_or_err(
py: Python<'_>,
ptr: *mut PyObject
) -> PyResult<Py<T>>
pub unsafe fn from_owned_ptr_or_err(
py: Python<'_>,
ptr: *mut PyObject
) -> PyResult<Py<T>>
Create a Py<T>
instance by taking ownership of the given FFI pointer.
If ptr
is null then the current Python exception is fetched as a PyErr
.
Safety
If non-null, ptr
must be a pointer to a Python object of type T.
sourcepub unsafe fn from_owned_ptr_or_opt(
_py: Python<'_>,
ptr: *mut PyObject
) -> Option<Self>
pub unsafe fn from_owned_ptr_or_opt(
_py: Python<'_>,
ptr: *mut PyObject
) -> Option<Self>
Create a Py<T>
instance by taking ownership of the given FFI pointer.
If ptr
is null then None
is returned.
Safety
If non-null, ptr
must be a pointer to a Python object of type T.
sourcepub unsafe fn from_borrowed_ptr_or_err(
py: Python<'_>,
ptr: *mut PyObject
) -> PyResult<Self>
pub unsafe fn from_borrowed_ptr_or_err(
py: Python<'_>,
ptr: *mut PyObject
) -> PyResult<Self>
Create a Py<T>
instance by creating a new reference from the given FFI pointer.
If ptr
is null then the current Python exception is fetched as a PyErr
.
Safety
ptr
must be a pointer to a Python object of type T.
sourceimpl Py<PyAny>
impl Py<PyAny>
sourcepub fn cast_as<'p, D>(
&'p self,
py: Python<'p>
) -> Result<&'p D, PyDowncastError<'_>> where
D: PyTryFrom<'p>,
pub fn cast_as<'p, D>(
&'p self,
py: Python<'p>
) -> Result<&'p D, PyDowncastError<'_>> where
D: PyTryFrom<'p>,
Casts the PyObject to a concrete Python object type.
This can cast only to native Python types, not types implemented in Rust. For a more
flexible alternative, see Py::extract
.
sourceimpl Py<PyIterator>
impl Py<PyIterator>
sourcepub fn as_ref<'py>(&'py self, _py: Python<'py>) -> &'py PyIteratorⓘNotable traits for &'p PyIteratorimpl<'p> Iterator for &'p PyIterator type Item = PyResult<&'p PyAny>;
pub fn as_ref<'py>(&'py self, _py: Python<'py>) -> &'py PyIteratorⓘNotable traits for &'p PyIteratorimpl<'p> Iterator for &'p PyIterator type Item = PyResult<&'p PyAny>;
Borrows a GIL-bound reference to the PyIterator. By binding to the GIL lifetime, this
allows the GIL-bound reference to not require Python
for any of its methods.
sourcepub fn into_ref(self, py: Python<'_>) -> &PyIteratorⓘNotable traits for &'p PyIteratorimpl<'p> Iterator for &'p PyIterator type Item = PyResult<&'p PyAny>;
pub fn into_ref(self, py: Python<'_>) -> &PyIteratorⓘNotable traits for &'p PyIteratorimpl<'p> Iterator for &'p PyIterator type Item = PyResult<&'p PyAny>;
Similar to as_ref
, and also consumes this Py
and registers the
Python object reference in PyO3’s object storage. The reference count for the Python
object will not be decreased until the GIL lifetime ends.
sourceimpl Py<PyMapping>
impl Py<PyMapping>
sourceimpl Py<PySequence>
impl Py<PySequence>
sourcepub fn as_ref<'py>(&'py self, _py: Python<'py>) -> &'py PySequence
pub fn as_ref<'py>(&'py self, _py: Python<'py>) -> &'py PySequence
Borrows a GIL-bound reference to the PySequence. By binding to the GIL lifetime, this
allows the GIL-bound reference to not require Python
for any of its methods.
let seq: Py<PySequence> = PyList::empty(py).as_sequence().into();
let seq: &PySequence = seq.as_ref(py);
assert_eq!(seq.len().unwrap(), 0);
sourcepub fn into_ref(self, py: Python<'_>) -> &PySequence
pub fn into_ref(self, py: Python<'_>) -> &PySequence
Similar to as_ref
, and also consumes this Py
and registers the
Python object reference in PyO3’s object storage. The reference count for the Python
object will not be decreased until the GIL lifetime ends.
Trait Implementations
sourceimpl<T> AsPyPointer for Py<T>
impl<T> AsPyPointer for Py<T>
sourceimpl<T> Clone for Py<T>
impl<T> Clone for Py<T>
If the GIL is held this increments self
’s reference count.
Otherwise this registers the Py
<T>
instance to have its reference count
incremented the next time PyO3 acquires the GIL.
sourceimpl<'de, T> Deserialize<'de> for Py<T> where
T: PyClass<BaseType = PyAny> + Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Py<T> where
T: PyClass<BaseType = PyAny> + Deserialize<'de>,
sourcefn deserialize<D>(deserializer: D) -> Result<Py<T>, D::Error> where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Py<T>, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<T> Display for Py<T> where
T: PyTypeInfo,
T::AsRefTarget: Display,
impl<T> Display for Py<T> where
T: PyTypeInfo,
T::AsRefTarget: Display,
sourceimpl<T> Drop for Py<T>
impl<T> Drop for Py<T>
Dropping a Py
instance decrements the reference count on the object by 1.
sourceimpl<T> Error for Py<T> where
T: Error + PyTypeInfo,
T::AsRefTarget: Display,
impl<T> Error for Py<T> where
T: Error + PyTypeInfo,
T::AsRefTarget: Display,
Py
However for GIL lifetime reasons, cause() cannot be implemented for Py
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<&'_ CancelledError> for Py<CancelledError>
impl From<&'_ CancelledError> for Py<CancelledError>
sourcefn from(other: &CancelledError) -> Self
fn from(other: &CancelledError) -> Self
Performs the conversion.
sourceimpl From<&'_ IncompleteReadError> for Py<IncompleteReadError>
impl From<&'_ IncompleteReadError> for Py<IncompleteReadError>
sourcefn from(other: &IncompleteReadError) -> Self
fn from(other: &IncompleteReadError) -> Self
Performs the conversion.
sourceimpl From<&'_ InvalidStateError> for Py<InvalidStateError>
impl From<&'_ InvalidStateError> for Py<InvalidStateError>
sourcefn from(other: &InvalidStateError) -> Self
fn from(other: &InvalidStateError) -> Self
Performs the conversion.
sourceimpl From<&'_ LimitOverrunError> for Py<LimitOverrunError>
impl From<&'_ LimitOverrunError> for Py<LimitOverrunError>
sourcefn from(other: &LimitOverrunError) -> Self
fn from(other: &LimitOverrunError) -> Self
Performs the conversion.
sourceimpl From<&'_ PanicException> for Py<PanicException>
impl From<&'_ PanicException> for Py<PanicException>
sourcefn from(other: &PanicException) -> Self
fn from(other: &PanicException) -> Self
Performs the conversion.
sourceimpl From<&'_ PyArithmeticError> for Py<PyArithmeticError>
impl From<&'_ PyArithmeticError> for Py<PyArithmeticError>
sourcefn from(other: &PyArithmeticError) -> Self
fn from(other: &PyArithmeticError) -> Self
Performs the conversion.
sourceimpl From<&'_ PyAssertionError> for Py<PyAssertionError>
impl From<&'_ PyAssertionError> for Py<PyAssertionError>
sourcefn from(other: &PyAssertionError) -> Self
fn from(other: &PyAssertionError) -> Self
Performs the conversion.
sourceimpl From<&'_ PyAttributeError> for Py<PyAttributeError>
impl From<&'_ PyAttributeError> for Py<PyAttributeError>
sourcefn from(other: &PyAttributeError) -> Self
fn from(other: &PyAttributeError) -> Self
Performs the conversion.
sourceimpl From<&'_ PyBaseException> for Py<PyBaseException>
impl From<&'_ PyBaseException> for Py<PyBaseException>
sourcefn from(other: &PyBaseException) -> Self
fn from(other: &PyBaseException) -> Self
Performs the conversion.
sourceimpl From<&'_ PyBlockingIOError> for Py<PyBlockingIOError>
impl From<&'_ PyBlockingIOError> for Py<PyBlockingIOError>
sourcefn from(other: &PyBlockingIOError) -> Self
fn from(other: &PyBlockingIOError) -> Self
Performs the conversion.
sourceimpl From<&'_ PyBrokenPipeError> for Py<PyBrokenPipeError>
impl From<&'_ PyBrokenPipeError> for Py<PyBrokenPipeError>
sourcefn from(other: &PyBrokenPipeError) -> Self
fn from(other: &PyBrokenPipeError) -> Self
Performs the conversion.
sourceimpl From<&'_ PyBufferError> for Py<PyBufferError>
impl From<&'_ PyBufferError> for Py<PyBufferError>
sourcefn from(other: &PyBufferError) -> Self
fn from(other: &PyBufferError) -> Self
Performs the conversion.
sourceimpl From<&'_ PyByteArray> for Py<PyByteArray>
impl From<&'_ PyByteArray> for Py<PyByteArray>
sourcefn from(other: &PyByteArray) -> Self
fn from(other: &PyByteArray) -> Self
Performs the conversion.
sourceimpl From<&'_ PyCFunction> for Py<PyCFunction>
impl From<&'_ PyCFunction> for Py<PyCFunction>
sourcefn from(other: &PyCFunction) -> Self
fn from(other: &PyCFunction) -> Self
Performs the conversion.
sourceimpl From<&'_ PyChildProcessError> for Py<PyChildProcessError>
impl From<&'_ PyChildProcessError> for Py<PyChildProcessError>
sourcefn from(other: &PyChildProcessError) -> Self
fn from(other: &PyChildProcessError) -> Self
Performs the conversion.
sourceimpl From<&'_ PyConnectionAbortedError> for Py<PyConnectionAbortedError>
impl From<&'_ PyConnectionAbortedError> for Py<PyConnectionAbortedError>
sourcefn from(other: &PyConnectionAbortedError) -> Self
fn from(other: &PyConnectionAbortedError) -> Self
Performs the conversion.
sourceimpl From<&'_ PyConnectionError> for Py<PyConnectionError>
impl From<&'_ PyConnectionError> for Py<PyConnectionError>
sourcefn from(other: &PyConnectionError) -> Self
fn from(other: &PyConnectionError) -> Self
Performs the conversion.
sourceimpl From<&'_ PyConnectionRefusedError> for Py<PyConnectionRefusedError>
impl From<&'_ PyConnectionRefusedError> for Py<PyConnectionRefusedError>
sourcefn from(other: &PyConnectionRefusedError) -> Self
fn from(other: &PyConnectionRefusedError) -> Self
Performs the conversion.
sourceimpl From<&'_ PyConnectionResetError> for Py<PyConnectionResetError>
impl From<&'_ PyConnectionResetError> for Py<PyConnectionResetError>
sourcefn from(other: &PyConnectionResetError) -> Self
fn from(other: &PyConnectionResetError) -> Self
Performs the conversion.
sourceimpl From<&'_ PyDateTime> for Py<PyDateTime>
impl From<&'_ PyDateTime> for Py<PyDateTime>
sourcefn from(other: &PyDateTime) -> Self
fn from(other: &PyDateTime) -> Self
Performs the conversion.
sourceimpl From<&'_ PyEOFError> for Py<PyEOFError>
impl From<&'_ PyEOFError> for Py<PyEOFError>
sourcefn from(other: &PyEOFError) -> Self
fn from(other: &PyEOFError) -> Self
Performs the conversion.
sourceimpl From<&'_ PyEnvironmentError> for Py<PyEnvironmentError>
impl From<&'_ PyEnvironmentError> for Py<PyEnvironmentError>
sourcefn from(other: &PyEnvironmentError) -> Self
fn from(other: &PyEnvironmentError) -> Self
Performs the conversion.
sourceimpl From<&'_ PyException> for Py<PyException>
impl From<&'_ PyException> for Py<PyException>
sourcefn from(other: &PyException) -> Self
fn from(other: &PyException) -> Self
Performs the conversion.
sourceimpl From<&'_ PyFileExistsError> for Py<PyFileExistsError>
impl From<&'_ PyFileExistsError> for Py<PyFileExistsError>
sourcefn from(other: &PyFileExistsError) -> Self
fn from(other: &PyFileExistsError) -> Self
Performs the conversion.
sourceimpl From<&'_ PyFileNotFoundError> for Py<PyFileNotFoundError>
impl From<&'_ PyFileNotFoundError> for Py<PyFileNotFoundError>
sourcefn from(other: &PyFileNotFoundError) -> Self
fn from(other: &PyFileNotFoundError) -> Self
Performs the conversion.
sourceimpl From<&'_ PyFloatingPointError> for Py<PyFloatingPointError>
impl From<&'_ PyFloatingPointError> for Py<PyFloatingPointError>
sourcefn from(other: &PyFloatingPointError) -> Self
fn from(other: &PyFloatingPointError) -> Self
Performs the conversion.
sourceimpl From<&'_ PyFrozenSet> for Py<PyFrozenSet>
impl From<&'_ PyFrozenSet> for Py<PyFrozenSet>
sourcefn from(other: &PyFrozenSet) -> Self
fn from(other: &PyFrozenSet) -> Self
Performs the conversion.
sourceimpl From<&'_ PyFunction> for Py<PyFunction>
impl From<&'_ PyFunction> for Py<PyFunction>
sourcefn from(other: &PyFunction) -> Self
fn from(other: &PyFunction) -> Self
Performs the conversion.
sourceimpl From<&'_ PyGeneratorExit> for Py<PyGeneratorExit>
impl From<&'_ PyGeneratorExit> for Py<PyGeneratorExit>
sourcefn from(other: &PyGeneratorExit) -> Self
fn from(other: &PyGeneratorExit) -> Self
Performs the conversion.
sourceimpl From<&'_ PyImportError> for Py<PyImportError>
impl From<&'_ PyImportError> for Py<PyImportError>
sourcefn from(other: &PyImportError) -> Self
fn from(other: &PyImportError) -> Self
Performs the conversion.
sourceimpl From<&'_ PyIndexError> for Py<PyIndexError>
impl From<&'_ PyIndexError> for Py<PyIndexError>
sourcefn from(other: &PyIndexError) -> Self
fn from(other: &PyIndexError) -> Self
Performs the conversion.
sourceimpl From<&'_ PyInterruptedError> for Py<PyInterruptedError>
impl From<&'_ PyInterruptedError> for Py<PyInterruptedError>
sourcefn from(other: &PyInterruptedError) -> Self
fn from(other: &PyInterruptedError) -> Self
Performs the conversion.
sourceimpl From<&'_ PyIsADirectoryError> for Py<PyIsADirectoryError>
impl From<&'_ PyIsADirectoryError> for Py<PyIsADirectoryError>
sourcefn from(other: &PyIsADirectoryError) -> Self
fn from(other: &PyIsADirectoryError) -> Self
Performs the conversion.
sourceimpl From<&'_ PyIterator> for Py<PyIterator>
impl From<&'_ PyIterator> for Py<PyIterator>
sourcefn from(other: &PyIterator) -> Self
fn from(other: &PyIterator) -> Self
Performs the conversion.
sourceimpl From<&'_ PyKeyError> for Py<PyKeyError>
impl From<&'_ PyKeyError> for Py<PyKeyError>
sourcefn from(other: &PyKeyError) -> Self
fn from(other: &PyKeyError) -> Self
Performs the conversion.
sourceimpl From<&'_ PyKeyboardInterrupt> for Py<PyKeyboardInterrupt>
impl From<&'_ PyKeyboardInterrupt> for Py<PyKeyboardInterrupt>
sourcefn from(other: &PyKeyboardInterrupt) -> Self
fn from(other: &PyKeyboardInterrupt) -> Self
Performs the conversion.
sourceimpl From<&'_ PyLookupError> for Py<PyLookupError>
impl From<&'_ PyLookupError> for Py<PyLookupError>
sourcefn from(other: &PyLookupError) -> Self
fn from(other: &PyLookupError) -> Self
Performs the conversion.
sourceimpl From<&'_ PyMemoryError> for Py<PyMemoryError>
impl From<&'_ PyMemoryError> for Py<PyMemoryError>
sourcefn from(other: &PyMemoryError) -> Self
fn from(other: &PyMemoryError) -> Self
Performs the conversion.
sourceimpl From<&'_ PyModuleNotFoundError> for Py<PyModuleNotFoundError>
impl From<&'_ PyModuleNotFoundError> for Py<PyModuleNotFoundError>
sourcefn from(other: &PyModuleNotFoundError) -> Self
fn from(other: &PyModuleNotFoundError) -> Self
Performs the conversion.
sourceimpl From<&'_ PyNameError> for Py<PyNameError>
impl From<&'_ PyNameError> for Py<PyNameError>
sourcefn from(other: &PyNameError) -> Self
fn from(other: &PyNameError) -> Self
Performs the conversion.
sourceimpl From<&'_ PyNotADirectoryError> for Py<PyNotADirectoryError>
impl From<&'_ PyNotADirectoryError> for Py<PyNotADirectoryError>
sourcefn from(other: &PyNotADirectoryError) -> Self
fn from(other: &PyNotADirectoryError) -> Self
Performs the conversion.
sourceimpl From<&'_ PyNotImplementedError> for Py<PyNotImplementedError>
impl From<&'_ PyNotImplementedError> for Py<PyNotImplementedError>
sourcefn from(other: &PyNotImplementedError) -> Self
fn from(other: &PyNotImplementedError) -> Self
Performs the conversion.
sourceimpl From<&'_ PyOverflowError> for Py<PyOverflowError>
impl From<&'_ PyOverflowError> for Py<PyOverflowError>
sourcefn from(other: &PyOverflowError) -> Self
fn from(other: &PyOverflowError) -> Self
Performs the conversion.
sourceimpl From<&'_ PyPermissionError> for Py<PyPermissionError>
impl From<&'_ PyPermissionError> for Py<PyPermissionError>
sourcefn from(other: &PyPermissionError) -> Self
fn from(other: &PyPermissionError) -> Self
Performs the conversion.
sourceimpl From<&'_ PyProcessLookupError> for Py<PyProcessLookupError>
impl From<&'_ PyProcessLookupError> for Py<PyProcessLookupError>
sourcefn from(other: &PyProcessLookupError) -> Self
fn from(other: &PyProcessLookupError) -> Self
Performs the conversion.
sourceimpl From<&'_ PyRecursionError> for Py<PyRecursionError>
impl From<&'_ PyRecursionError> for Py<PyRecursionError>
sourcefn from(other: &PyRecursionError) -> Self
fn from(other: &PyRecursionError) -> Self
Performs the conversion.
sourceimpl From<&'_ PyReferenceError> for Py<PyReferenceError>
impl From<&'_ PyReferenceError> for Py<PyReferenceError>
sourcefn from(other: &PyReferenceError) -> Self
fn from(other: &PyReferenceError) -> Self
Performs the conversion.
sourceimpl From<&'_ PyRuntimeError> for Py<PyRuntimeError>
impl From<&'_ PyRuntimeError> for Py<PyRuntimeError>
sourcefn from(other: &PyRuntimeError) -> Self
fn from(other: &PyRuntimeError) -> Self
Performs the conversion.
sourceimpl From<&'_ PySequence> for Py<PySequence>
impl From<&'_ PySequence> for Py<PySequence>
sourcefn from(other: &PySequence) -> Self
fn from(other: &PySequence) -> Self
Performs the conversion.
sourceimpl From<&'_ PyStopAsyncIteration> for Py<PyStopAsyncIteration>
impl From<&'_ PyStopAsyncIteration> for Py<PyStopAsyncIteration>
sourcefn from(other: &PyStopAsyncIteration) -> Self
fn from(other: &PyStopAsyncIteration) -> Self
Performs the conversion.
sourceimpl From<&'_ PyStopIteration> for Py<PyStopIteration>
impl From<&'_ PyStopIteration> for Py<PyStopIteration>
sourcefn from(other: &PyStopIteration) -> Self
fn from(other: &PyStopIteration) -> Self
Performs the conversion.
sourceimpl From<&'_ PySyntaxError> for Py<PySyntaxError>
impl From<&'_ PySyntaxError> for Py<PySyntaxError>
sourcefn from(other: &PySyntaxError) -> Self
fn from(other: &PySyntaxError) -> Self
Performs the conversion.
sourceimpl From<&'_ PySystemError> for Py<PySystemError>
impl From<&'_ PySystemError> for Py<PySystemError>
sourcefn from(other: &PySystemError) -> Self
fn from(other: &PySystemError) -> Self
Performs the conversion.
sourceimpl From<&'_ PySystemExit> for Py<PySystemExit>
impl From<&'_ PySystemExit> for Py<PySystemExit>
sourcefn from(other: &PySystemExit) -> Self
fn from(other: &PySystemExit) -> Self
Performs the conversion.
sourceimpl From<&'_ PyTimeoutError> for Py<PyTimeoutError>
impl From<&'_ PyTimeoutError> for Py<PyTimeoutError>
sourcefn from(other: &PyTimeoutError) -> Self
fn from(other: &PyTimeoutError) -> Self
Performs the conversion.
sourceimpl From<&'_ PyTraceback> for Py<PyTraceback>
impl From<&'_ PyTraceback> for Py<PyTraceback>
sourcefn from(other: &PyTraceback) -> Self
fn from(other: &PyTraceback) -> Self
Performs the conversion.
sourceimpl From<&'_ PyTypeError> for Py<PyTypeError>
impl From<&'_ PyTypeError> for Py<PyTypeError>
sourcefn from(other: &PyTypeError) -> Self
fn from(other: &PyTypeError) -> Self
Performs the conversion.
sourceimpl From<&'_ PyUnboundLocalError> for Py<PyUnboundLocalError>
impl From<&'_ PyUnboundLocalError> for Py<PyUnboundLocalError>
sourcefn from(other: &PyUnboundLocalError) -> Self
fn from(other: &PyUnboundLocalError) -> Self
Performs the conversion.
sourceimpl From<&'_ PyUnicodeDecodeError> for Py<PyUnicodeDecodeError>
impl From<&'_ PyUnicodeDecodeError> for Py<PyUnicodeDecodeError>
sourcefn from(other: &PyUnicodeDecodeError) -> Self
fn from(other: &PyUnicodeDecodeError) -> Self
Performs the conversion.
sourceimpl From<&'_ PyUnicodeEncodeError> for Py<PyUnicodeEncodeError>
impl From<&'_ PyUnicodeEncodeError> for Py<PyUnicodeEncodeError>
sourcefn from(other: &PyUnicodeEncodeError) -> Self
fn from(other: &PyUnicodeEncodeError) -> Self
Performs the conversion.
sourceimpl From<&'_ PyUnicodeError> for Py<PyUnicodeError>
impl From<&'_ PyUnicodeError> for Py<PyUnicodeError>
sourcefn from(other: &PyUnicodeError) -> Self
fn from(other: &PyUnicodeError) -> Self
Performs the conversion.
sourceimpl From<&'_ PyUnicodeTranslateError> for Py<PyUnicodeTranslateError>
impl From<&'_ PyUnicodeTranslateError> for Py<PyUnicodeTranslateError>
sourcefn from(other: &PyUnicodeTranslateError) -> Self
fn from(other: &PyUnicodeTranslateError) -> Self
Performs the conversion.
sourceimpl From<&'_ PyValueError> for Py<PyValueError>
impl From<&'_ PyValueError> for Py<PyValueError>
sourcefn from(other: &PyValueError) -> Self
fn from(other: &PyValueError) -> Self
Performs the conversion.
sourceimpl From<&'_ PyZeroDivisionError> for Py<PyZeroDivisionError>
impl From<&'_ PyZeroDivisionError> for Py<PyZeroDivisionError>
sourcefn from(other: &PyZeroDivisionError) -> Self
fn from(other: &PyZeroDivisionError) -> Self
Performs the conversion.
sourceimpl From<&'_ QueueEmpty> for Py<QueueEmpty>
impl From<&'_ QueueEmpty> for Py<QueueEmpty>
sourcefn from(other: &QueueEmpty) -> Self
fn from(other: &QueueEmpty) -> Self
Performs the conversion.
sourceimpl From<&'_ TimeoutError> for Py<TimeoutError>
impl From<&'_ TimeoutError> for Py<TimeoutError>
sourcefn from(other: &TimeoutError) -> Self
fn from(other: &TimeoutError) -> Self
Performs the conversion.
sourceimpl<'a, T> FromPyObject<'a> for Py<T> where
T: PyTypeInfo,
&'a T::AsRefTarget: FromPyObject<'a>,
T::AsRefTarget: 'a + AsPyPointer,
impl<'a, T> FromPyObject<'a> for Py<T> where
T: PyTypeInfo,
&'a T::AsRefTarget: FromPyObject<'a>,
T::AsRefTarget: 'a + AsPyPointer,
sourceimpl IntoPy<Py<CancelledError>> for &CancelledError
impl IntoPy<Py<CancelledError>> for &CancelledError
sourcefn into_py(self, py: Python<'_>) -> Py<CancelledError>
fn into_py(self, py: Python<'_>) -> Py<CancelledError>
Performs the conversion.
sourceimpl IntoPy<Py<IncompleteReadError>> for &IncompleteReadError
impl IntoPy<Py<IncompleteReadError>> for &IncompleteReadError
sourcefn into_py(self, py: Python<'_>) -> Py<IncompleteReadError>
fn into_py(self, py: Python<'_>) -> Py<IncompleteReadError>
Performs the conversion.
sourceimpl IntoPy<Py<InvalidStateError>> for &InvalidStateError
impl IntoPy<Py<InvalidStateError>> for &InvalidStateError
sourcefn into_py(self, py: Python<'_>) -> Py<InvalidStateError>
fn into_py(self, py: Python<'_>) -> Py<InvalidStateError>
Performs the conversion.
sourceimpl IntoPy<Py<LimitOverrunError>> for &LimitOverrunError
impl IntoPy<Py<LimitOverrunError>> for &LimitOverrunError
sourcefn into_py(self, py: Python<'_>) -> Py<LimitOverrunError>
fn into_py(self, py: Python<'_>) -> Py<LimitOverrunError>
Performs the conversion.
sourceimpl IntoPy<Py<PanicException>> for &PanicException
impl IntoPy<Py<PanicException>> for &PanicException
sourcefn into_py(self, py: Python<'_>) -> Py<PanicException>
fn into_py(self, py: Python<'_>) -> Py<PanicException>
Performs the conversion.
sourceimpl<K, V, H> IntoPy<Py<PyAny>> for HashMap<K, V, H> where
K: Hash + Eq + IntoPy<PyObject>,
V: IntoPy<PyObject>,
H: BuildHasher,
impl<K, V, H> IntoPy<Py<PyAny>> for HashMap<K, V, H> where
K: Hash + Eq + IntoPy<PyObject>,
V: IntoPy<PyObject>,
H: BuildHasher,
sourceimpl<K, V> IntoPy<Py<PyAny>> for BTreeMap<K, V> where
K: Eq + IntoPy<PyObject>,
V: IntoPy<PyObject>,
impl<K, V> IntoPy<Py<PyAny>> for BTreeMap<K, V> where
K: Eq + IntoPy<PyObject>,
V: IntoPy<PyObject>,
sourceimpl<K, V, H> IntoPy<Py<PyAny>> for HashMap<K, V, H> where
K: Hash + Eq + IntoPy<PyObject>,
V: IntoPy<PyObject>,
H: BuildHasher,
impl<K, V, H> IntoPy<Py<PyAny>> for HashMap<K, V, H> where
K: Hash + Eq + IntoPy<PyObject>,
V: IntoPy<PyObject>,
H: BuildHasher,
sourceimpl<K, S> IntoPy<Py<PyAny>> for HashSet<K, S> where
K: IntoPy<PyObject> + Eq + Hash,
S: BuildHasher + Default,
impl<K, S> IntoPy<Py<PyAny>> for HashSet<K, S> where
K: IntoPy<PyObject> + Eq + Hash,
S: BuildHasher + Default,
sourceimpl<K, S> IntoPy<Py<PyAny>> for HashSet<K, S> where
K: IntoPy<PyObject> + Eq + Hash,
S: BuildHasher + Default,
impl<K, S> IntoPy<Py<PyAny>> for HashSet<K, S> where
K: IntoPy<PyObject> + Eq + Hash,
S: BuildHasher + Default,
sourceimpl<T0: IntoPy<PyObject>, T1: IntoPy<PyObject>, T2: IntoPy<PyObject>> IntoPy<Py<PyAny>> for (T0, T1, T2)
impl<T0: IntoPy<PyObject>, T1: IntoPy<PyObject>, T2: IntoPy<PyObject>> IntoPy<Py<PyAny>> for (T0, T1, T2)
sourceimpl<T0: IntoPy<PyObject>, T1: IntoPy<PyObject>, T2: IntoPy<PyObject>, T3: IntoPy<PyObject>> IntoPy<Py<PyAny>> for (T0, T1, T2, T3)
impl<T0: IntoPy<PyObject>, T1: IntoPy<PyObject>, T2: IntoPy<PyObject>, T3: IntoPy<PyObject>> IntoPy<Py<PyAny>> for (T0, T1, T2, T3)
sourceimpl<T0: IntoPy<PyObject>, T1: IntoPy<PyObject>, T2: IntoPy<PyObject>, T3: IntoPy<PyObject>, T4: IntoPy<PyObject>> IntoPy<Py<PyAny>> for (T0, T1, T2, T3, T4)
impl<T0: IntoPy<PyObject>, T1: IntoPy<PyObject>, T2: IntoPy<PyObject>, T3: IntoPy<PyObject>, T4: IntoPy<PyObject>> IntoPy<Py<PyAny>> for (T0, T1, T2, T3, T4)
sourceimpl<T0: IntoPy<PyObject>, T1: IntoPy<PyObject>, T2: IntoPy<PyObject>, T3: IntoPy<PyObject>, T4: IntoPy<PyObject>, T5: IntoPy<PyObject>> IntoPy<Py<PyAny>> for (T0, T1, T2, T3, T4, T5)
impl<T0: IntoPy<PyObject>, T1: IntoPy<PyObject>, T2: IntoPy<PyObject>, T3: IntoPy<PyObject>, T4: IntoPy<PyObject>, T5: IntoPy<PyObject>> IntoPy<Py<PyAny>> for (T0, T1, T2, T3, T4, T5)
sourceimpl<T0: IntoPy<PyObject>, T1: IntoPy<PyObject>, T2: IntoPy<PyObject>, T3: IntoPy<PyObject>, T4: IntoPy<PyObject>, T5: IntoPy<PyObject>, T6: IntoPy<PyObject>> IntoPy<Py<PyAny>> for (T0, T1, T2, T3, T4, T5, T6)
impl<T0: IntoPy<PyObject>, T1: IntoPy<PyObject>, T2: IntoPy<PyObject>, T3: IntoPy<PyObject>, T4: IntoPy<PyObject>, T5: IntoPy<PyObject>, T6: IntoPy<PyObject>> IntoPy<Py<PyAny>> for (T0, T1, T2, T3, T4, T5, T6)
sourceimpl<T0: IntoPy<PyObject>, T1: IntoPy<PyObject>, T2: IntoPy<PyObject>, T3: IntoPy<PyObject>, T4: IntoPy<PyObject>, T5: IntoPy<PyObject>, T6: IntoPy<PyObject>, T7: IntoPy<PyObject>> IntoPy<Py<PyAny>> for (T0, T1, T2, T3, T4, T5, T6, T7)
impl<T0: IntoPy<PyObject>, T1: IntoPy<PyObject>, T2: IntoPy<PyObject>, T3: IntoPy<PyObject>, T4: IntoPy<PyObject>, T5: IntoPy<PyObject>, T6: IntoPy<PyObject>, T7: IntoPy<PyObject>> IntoPy<Py<PyAny>> for (T0, T1, T2, T3, T4, T5, T6, T7)
sourceimpl<T0: IntoPy<PyObject>, T1: IntoPy<PyObject>, T2: IntoPy<PyObject>, T3: IntoPy<PyObject>, T4: IntoPy<PyObject>, T5: IntoPy<PyObject>, T6: IntoPy<PyObject>, T7: IntoPy<PyObject>, T8: IntoPy<PyObject>> IntoPy<Py<PyAny>> for (T0, T1, T2, T3, T4, T5, T6, T7, T8)
impl<T0: IntoPy<PyObject>, T1: IntoPy<PyObject>, T2: IntoPy<PyObject>, T3: IntoPy<PyObject>, T4: IntoPy<PyObject>, T5: IntoPy<PyObject>, T6: IntoPy<PyObject>, T7: IntoPy<PyObject>, T8: IntoPy<PyObject>> IntoPy<Py<PyAny>> for (T0, T1, T2, T3, T4, T5, T6, T7, T8)
sourceimpl<T0: IntoPy<PyObject>, T1: IntoPy<PyObject>, T2: IntoPy<PyObject>, T3: IntoPy<PyObject>, T4: IntoPy<PyObject>, T5: IntoPy<PyObject>, T6: IntoPy<PyObject>, T7: IntoPy<PyObject>, T8: IntoPy<PyObject>, T9: IntoPy<PyObject>> IntoPy<Py<PyAny>> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)
impl<T0: IntoPy<PyObject>, T1: IntoPy<PyObject>, T2: IntoPy<PyObject>, T3: IntoPy<PyObject>, T4: IntoPy<PyObject>, T5: IntoPy<PyObject>, T6: IntoPy<PyObject>, T7: IntoPy<PyObject>, T8: IntoPy<PyObject>, T9: IntoPy<PyObject>> IntoPy<Py<PyAny>> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)
sourceimpl<K, V, H> IntoPy<Py<PyAny>> for IndexMap<K, V, H> where
K: Hash + Eq + IntoPy<PyObject>,
V: IntoPy<PyObject>,
H: BuildHasher,
impl<K, V, H> IntoPy<Py<PyAny>> for IndexMap<K, V, H> where
K: Hash + Eq + IntoPy<PyObject>,
V: IntoPy<PyObject>,
H: BuildHasher,
sourceimpl<T0: IntoPy<PyObject>, T1: IntoPy<PyObject>, T2: IntoPy<PyObject>, T3: IntoPy<PyObject>, T4: IntoPy<PyObject>, T5: IntoPy<PyObject>, T6: IntoPy<PyObject>, T7: IntoPy<PyObject>, T8: IntoPy<PyObject>, T9: IntoPy<PyObject>, T10: IntoPy<PyObject>> IntoPy<Py<PyAny>> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)
impl<T0: IntoPy<PyObject>, T1: IntoPy<PyObject>, T2: IntoPy<PyObject>, T3: IntoPy<PyObject>, T4: IntoPy<PyObject>, T5: IntoPy<PyObject>, T6: IntoPy<PyObject>, T7: IntoPy<PyObject>, T8: IntoPy<PyObject>, T9: IntoPy<PyObject>, T10: IntoPy<PyObject>> IntoPy<Py<PyAny>> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)
sourceimpl<T0: IntoPy<PyObject>, T1: IntoPy<PyObject>, T2: IntoPy<PyObject>, T3: IntoPy<PyObject>, T4: IntoPy<PyObject>, T5: IntoPy<PyObject>, T6: IntoPy<PyObject>, T7: IntoPy<PyObject>, T8: IntoPy<PyObject>, T9: IntoPy<PyObject>, T10: IntoPy<PyObject>, T11: IntoPy<PyObject>> IntoPy<Py<PyAny>> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)
impl<T0: IntoPy<PyObject>, T1: IntoPy<PyObject>, T2: IntoPy<PyObject>, T3: IntoPy<PyObject>, T4: IntoPy<PyObject>, T5: IntoPy<PyObject>, T6: IntoPy<PyObject>, T7: IntoPy<PyObject>, T8: IntoPy<PyObject>, T9: IntoPy<PyObject>, T10: IntoPy<PyObject>, T11: IntoPy<PyObject>> IntoPy<Py<PyAny>> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)
sourceimpl IntoPy<Py<PyArithmeticError>> for &PyArithmeticError
impl IntoPy<Py<PyArithmeticError>> for &PyArithmeticError
sourcefn into_py(self, py: Python<'_>) -> Py<PyArithmeticError>
fn into_py(self, py: Python<'_>) -> Py<PyArithmeticError>
Performs the conversion.
sourceimpl IntoPy<Py<PyAssertionError>> for &PyAssertionError
impl IntoPy<Py<PyAssertionError>> for &PyAssertionError
sourcefn into_py(self, py: Python<'_>) -> Py<PyAssertionError>
fn into_py(self, py: Python<'_>) -> Py<PyAssertionError>
Performs the conversion.
sourceimpl IntoPy<Py<PyAttributeError>> for &PyAttributeError
impl IntoPy<Py<PyAttributeError>> for &PyAttributeError
sourcefn into_py(self, py: Python<'_>) -> Py<PyAttributeError>
fn into_py(self, py: Python<'_>) -> Py<PyAttributeError>
Performs the conversion.
sourceimpl IntoPy<Py<PyBaseException>> for &PyBaseException
impl IntoPy<Py<PyBaseException>> for &PyBaseException
sourcefn into_py(self, py: Python<'_>) -> Py<PyBaseException>
fn into_py(self, py: Python<'_>) -> Py<PyBaseException>
Performs the conversion.
sourceimpl IntoPy<Py<PyBlockingIOError>> for &PyBlockingIOError
impl IntoPy<Py<PyBlockingIOError>> for &PyBlockingIOError
sourcefn into_py(self, py: Python<'_>) -> Py<PyBlockingIOError>
fn into_py(self, py: Python<'_>) -> Py<PyBlockingIOError>
Performs the conversion.
sourceimpl IntoPy<Py<PyBrokenPipeError>> for &PyBrokenPipeError
impl IntoPy<Py<PyBrokenPipeError>> for &PyBrokenPipeError
sourcefn into_py(self, py: Python<'_>) -> Py<PyBrokenPipeError>
fn into_py(self, py: Python<'_>) -> Py<PyBrokenPipeError>
Performs the conversion.
sourceimpl IntoPy<Py<PyBufferError>> for &PyBufferError
impl IntoPy<Py<PyBufferError>> for &PyBufferError
sourcefn into_py(self, py: Python<'_>) -> Py<PyBufferError>
fn into_py(self, py: Python<'_>) -> Py<PyBufferError>
Performs the conversion.
sourceimpl IntoPy<Py<PyByteArray>> for &PyByteArray
impl IntoPy<Py<PyByteArray>> for &PyByteArray
sourcefn into_py(self, py: Python<'_>) -> Py<PyByteArray>
fn into_py(self, py: Python<'_>) -> Py<PyByteArray>
Performs the conversion.
sourceimpl IntoPy<Py<PyCFunction>> for &PyCFunction
impl IntoPy<Py<PyCFunction>> for &PyCFunction
sourcefn into_py(self, py: Python<'_>) -> Py<PyCFunction>
fn into_py(self, py: Python<'_>) -> Py<PyCFunction>
Performs the conversion.
sourceimpl IntoPy<Py<PyChildProcessError>> for &PyChildProcessError
impl IntoPy<Py<PyChildProcessError>> for &PyChildProcessError
sourcefn into_py(self, py: Python<'_>) -> Py<PyChildProcessError>
fn into_py(self, py: Python<'_>) -> Py<PyChildProcessError>
Performs the conversion.
sourceimpl IntoPy<Py<PyConnectionAbortedError>> for &PyConnectionAbortedError
impl IntoPy<Py<PyConnectionAbortedError>> for &PyConnectionAbortedError
sourcefn into_py(self, py: Python<'_>) -> Py<PyConnectionAbortedError>
fn into_py(self, py: Python<'_>) -> Py<PyConnectionAbortedError>
Performs the conversion.
sourceimpl IntoPy<Py<PyConnectionError>> for &PyConnectionError
impl IntoPy<Py<PyConnectionError>> for &PyConnectionError
sourcefn into_py(self, py: Python<'_>) -> Py<PyConnectionError>
fn into_py(self, py: Python<'_>) -> Py<PyConnectionError>
Performs the conversion.
sourceimpl IntoPy<Py<PyConnectionRefusedError>> for &PyConnectionRefusedError
impl IntoPy<Py<PyConnectionRefusedError>> for &PyConnectionRefusedError
sourcefn into_py(self, py: Python<'_>) -> Py<PyConnectionRefusedError>
fn into_py(self, py: Python<'_>) -> Py<PyConnectionRefusedError>
Performs the conversion.
sourceimpl IntoPy<Py<PyConnectionResetError>> for &PyConnectionResetError
impl IntoPy<Py<PyConnectionResetError>> for &PyConnectionResetError
sourcefn into_py(self, py: Python<'_>) -> Py<PyConnectionResetError>
fn into_py(self, py: Python<'_>) -> Py<PyConnectionResetError>
Performs the conversion.
sourceimpl IntoPy<Py<PyDateTime>> for &PyDateTime
impl IntoPy<Py<PyDateTime>> for &PyDateTime
sourcefn into_py(self, py: Python<'_>) -> Py<PyDateTime>
fn into_py(self, py: Python<'_>) -> Py<PyDateTime>
Performs the conversion.
sourceimpl IntoPy<Py<PyEOFError>> for &PyEOFError
impl IntoPy<Py<PyEOFError>> for &PyEOFError
sourcefn into_py(self, py: Python<'_>) -> Py<PyEOFError>
fn into_py(self, py: Python<'_>) -> Py<PyEOFError>
Performs the conversion.
sourceimpl IntoPy<Py<PyEnvironmentError>> for &PyEnvironmentError
impl IntoPy<Py<PyEnvironmentError>> for &PyEnvironmentError
sourcefn into_py(self, py: Python<'_>) -> Py<PyEnvironmentError>
fn into_py(self, py: Python<'_>) -> Py<PyEnvironmentError>
Performs the conversion.
sourceimpl IntoPy<Py<PyException>> for &PyException
impl IntoPy<Py<PyException>> for &PyException
sourcefn into_py(self, py: Python<'_>) -> Py<PyException>
fn into_py(self, py: Python<'_>) -> Py<PyException>
Performs the conversion.
sourceimpl IntoPy<Py<PyFileExistsError>> for &PyFileExistsError
impl IntoPy<Py<PyFileExistsError>> for &PyFileExistsError
sourcefn into_py(self, py: Python<'_>) -> Py<PyFileExistsError>
fn into_py(self, py: Python<'_>) -> Py<PyFileExistsError>
Performs the conversion.
sourceimpl IntoPy<Py<PyFileNotFoundError>> for &PyFileNotFoundError
impl IntoPy<Py<PyFileNotFoundError>> for &PyFileNotFoundError
sourcefn into_py(self, py: Python<'_>) -> Py<PyFileNotFoundError>
fn into_py(self, py: Python<'_>) -> Py<PyFileNotFoundError>
Performs the conversion.
sourceimpl IntoPy<Py<PyFloatingPointError>> for &PyFloatingPointError
impl IntoPy<Py<PyFloatingPointError>> for &PyFloatingPointError
sourcefn into_py(self, py: Python<'_>) -> Py<PyFloatingPointError>
fn into_py(self, py: Python<'_>) -> Py<PyFloatingPointError>
Performs the conversion.
sourceimpl IntoPy<Py<PyFrozenSet>> for &PyFrozenSet
impl IntoPy<Py<PyFrozenSet>> for &PyFrozenSet
sourcefn into_py(self, py: Python<'_>) -> Py<PyFrozenSet>
fn into_py(self, py: Python<'_>) -> Py<PyFrozenSet>
Performs the conversion.
sourceimpl IntoPy<Py<PyFunction>> for &PyFunction
impl IntoPy<Py<PyFunction>> for &PyFunction
sourcefn into_py(self, py: Python<'_>) -> Py<PyFunction>
fn into_py(self, py: Python<'_>) -> Py<PyFunction>
Performs the conversion.
sourceimpl IntoPy<Py<PyGeneratorExit>> for &PyGeneratorExit
impl IntoPy<Py<PyGeneratorExit>> for &PyGeneratorExit
sourcefn into_py(self, py: Python<'_>) -> Py<PyGeneratorExit>
fn into_py(self, py: Python<'_>) -> Py<PyGeneratorExit>
Performs the conversion.
sourceimpl IntoPy<Py<PyImportError>> for &PyImportError
impl IntoPy<Py<PyImportError>> for &PyImportError
sourcefn into_py(self, py: Python<'_>) -> Py<PyImportError>
fn into_py(self, py: Python<'_>) -> Py<PyImportError>
Performs the conversion.
sourceimpl IntoPy<Py<PyIndexError>> for &PyIndexError
impl IntoPy<Py<PyIndexError>> for &PyIndexError
sourcefn into_py(self, py: Python<'_>) -> Py<PyIndexError>
fn into_py(self, py: Python<'_>) -> Py<PyIndexError>
Performs the conversion.
sourceimpl IntoPy<Py<PyInterruptedError>> for &PyInterruptedError
impl IntoPy<Py<PyInterruptedError>> for &PyInterruptedError
sourcefn into_py(self, py: Python<'_>) -> Py<PyInterruptedError>
fn into_py(self, py: Python<'_>) -> Py<PyInterruptedError>
Performs the conversion.
sourceimpl IntoPy<Py<PyIsADirectoryError>> for &PyIsADirectoryError
impl IntoPy<Py<PyIsADirectoryError>> for &PyIsADirectoryError
sourcefn into_py(self, py: Python<'_>) -> Py<PyIsADirectoryError>
fn into_py(self, py: Python<'_>) -> Py<PyIsADirectoryError>
Performs the conversion.
sourceimpl IntoPy<Py<PyIterator>> for &PyIterator
impl IntoPy<Py<PyIterator>> for &PyIterator
sourcefn into_py(self, py: Python<'_>) -> Py<PyIterator>
fn into_py(self, py: Python<'_>) -> Py<PyIterator>
Performs the conversion.
sourceimpl IntoPy<Py<PyKeyError>> for &PyKeyError
impl IntoPy<Py<PyKeyError>> for &PyKeyError
sourcefn into_py(self, py: Python<'_>) -> Py<PyKeyError>
fn into_py(self, py: Python<'_>) -> Py<PyKeyError>
Performs the conversion.
sourceimpl IntoPy<Py<PyKeyboardInterrupt>> for &PyKeyboardInterrupt
impl IntoPy<Py<PyKeyboardInterrupt>> for &PyKeyboardInterrupt
sourcefn into_py(self, py: Python<'_>) -> Py<PyKeyboardInterrupt>
fn into_py(self, py: Python<'_>) -> Py<PyKeyboardInterrupt>
Performs the conversion.
sourceimpl IntoPy<Py<PyLookupError>> for &PyLookupError
impl IntoPy<Py<PyLookupError>> for &PyLookupError
sourcefn into_py(self, py: Python<'_>) -> Py<PyLookupError>
fn into_py(self, py: Python<'_>) -> Py<PyLookupError>
Performs the conversion.
sourceimpl IntoPy<Py<PyMemoryError>> for &PyMemoryError
impl IntoPy<Py<PyMemoryError>> for &PyMemoryError
sourcefn into_py(self, py: Python<'_>) -> Py<PyMemoryError>
fn into_py(self, py: Python<'_>) -> Py<PyMemoryError>
Performs the conversion.
sourceimpl IntoPy<Py<PyModuleNotFoundError>> for &PyModuleNotFoundError
impl IntoPy<Py<PyModuleNotFoundError>> for &PyModuleNotFoundError
sourcefn into_py(self, py: Python<'_>) -> Py<PyModuleNotFoundError>
fn into_py(self, py: Python<'_>) -> Py<PyModuleNotFoundError>
Performs the conversion.
sourceimpl IntoPy<Py<PyNameError>> for &PyNameError
impl IntoPy<Py<PyNameError>> for &PyNameError
sourcefn into_py(self, py: Python<'_>) -> Py<PyNameError>
fn into_py(self, py: Python<'_>) -> Py<PyNameError>
Performs the conversion.
sourceimpl IntoPy<Py<PyNotADirectoryError>> for &PyNotADirectoryError
impl IntoPy<Py<PyNotADirectoryError>> for &PyNotADirectoryError
sourcefn into_py(self, py: Python<'_>) -> Py<PyNotADirectoryError>
fn into_py(self, py: Python<'_>) -> Py<PyNotADirectoryError>
Performs the conversion.
sourceimpl IntoPy<Py<PyNotImplementedError>> for &PyNotImplementedError
impl IntoPy<Py<PyNotImplementedError>> for &PyNotImplementedError
sourcefn into_py(self, py: Python<'_>) -> Py<PyNotImplementedError>
fn into_py(self, py: Python<'_>) -> Py<PyNotImplementedError>
Performs the conversion.
sourceimpl IntoPy<Py<PyOverflowError>> for &PyOverflowError
impl IntoPy<Py<PyOverflowError>> for &PyOverflowError
sourcefn into_py(self, py: Python<'_>) -> Py<PyOverflowError>
fn into_py(self, py: Python<'_>) -> Py<PyOverflowError>
Performs the conversion.
sourceimpl IntoPy<Py<PyPermissionError>> for &PyPermissionError
impl IntoPy<Py<PyPermissionError>> for &PyPermissionError
sourcefn into_py(self, py: Python<'_>) -> Py<PyPermissionError>
fn into_py(self, py: Python<'_>) -> Py<PyPermissionError>
Performs the conversion.
sourceimpl IntoPy<Py<PyProcessLookupError>> for &PyProcessLookupError
impl IntoPy<Py<PyProcessLookupError>> for &PyProcessLookupError
sourcefn into_py(self, py: Python<'_>) -> Py<PyProcessLookupError>
fn into_py(self, py: Python<'_>) -> Py<PyProcessLookupError>
Performs the conversion.
sourceimpl IntoPy<Py<PyRecursionError>> for &PyRecursionError
impl IntoPy<Py<PyRecursionError>> for &PyRecursionError
sourcefn into_py(self, py: Python<'_>) -> Py<PyRecursionError>
fn into_py(self, py: Python<'_>) -> Py<PyRecursionError>
Performs the conversion.
sourceimpl IntoPy<Py<PyReferenceError>> for &PyReferenceError
impl IntoPy<Py<PyReferenceError>> for &PyReferenceError
sourcefn into_py(self, py: Python<'_>) -> Py<PyReferenceError>
fn into_py(self, py: Python<'_>) -> Py<PyReferenceError>
Performs the conversion.
sourceimpl IntoPy<Py<PyRuntimeError>> for &PyRuntimeError
impl IntoPy<Py<PyRuntimeError>> for &PyRuntimeError
sourcefn into_py(self, py: Python<'_>) -> Py<PyRuntimeError>
fn into_py(self, py: Python<'_>) -> Py<PyRuntimeError>
Performs the conversion.
sourceimpl IntoPy<Py<PySequence>> for &PySequence
impl IntoPy<Py<PySequence>> for &PySequence
sourcefn into_py(self, py: Python<'_>) -> Py<PySequence>
fn into_py(self, py: Python<'_>) -> Py<PySequence>
Performs the conversion.
sourceimpl IntoPy<Py<PyStopAsyncIteration>> for &PyStopAsyncIteration
impl IntoPy<Py<PyStopAsyncIteration>> for &PyStopAsyncIteration
sourcefn into_py(self, py: Python<'_>) -> Py<PyStopAsyncIteration>
fn into_py(self, py: Python<'_>) -> Py<PyStopAsyncIteration>
Performs the conversion.
sourceimpl IntoPy<Py<PyStopIteration>> for &PyStopIteration
impl IntoPy<Py<PyStopIteration>> for &PyStopIteration
sourcefn into_py(self, py: Python<'_>) -> Py<PyStopIteration>
fn into_py(self, py: Python<'_>) -> Py<PyStopIteration>
Performs the conversion.
sourceimpl IntoPy<Py<PySyntaxError>> for &PySyntaxError
impl IntoPy<Py<PySyntaxError>> for &PySyntaxError
sourcefn into_py(self, py: Python<'_>) -> Py<PySyntaxError>
fn into_py(self, py: Python<'_>) -> Py<PySyntaxError>
Performs the conversion.
sourceimpl IntoPy<Py<PySystemError>> for &PySystemError
impl IntoPy<Py<PySystemError>> for &PySystemError
sourcefn into_py(self, py: Python<'_>) -> Py<PySystemError>
fn into_py(self, py: Python<'_>) -> Py<PySystemError>
Performs the conversion.
sourceimpl IntoPy<Py<PySystemExit>> for &PySystemExit
impl IntoPy<Py<PySystemExit>> for &PySystemExit
sourcefn into_py(self, py: Python<'_>) -> Py<PySystemExit>
fn into_py(self, py: Python<'_>) -> Py<PySystemExit>
Performs the conversion.
sourceimpl IntoPy<Py<PyTimeoutError>> for &PyTimeoutError
impl IntoPy<Py<PyTimeoutError>> for &PyTimeoutError
sourcefn into_py(self, py: Python<'_>) -> Py<PyTimeoutError>
fn into_py(self, py: Python<'_>) -> Py<PyTimeoutError>
Performs the conversion.
sourceimpl IntoPy<Py<PyTraceback>> for &PyTraceback
impl IntoPy<Py<PyTraceback>> for &PyTraceback
sourcefn into_py(self, py: Python<'_>) -> Py<PyTraceback>
fn into_py(self, py: Python<'_>) -> Py<PyTraceback>
Performs the conversion.
sourceimpl<T0: IntoPy<PyObject>, T1: IntoPy<PyObject>, T2: IntoPy<PyObject>, T3: IntoPy<PyObject>, T4: IntoPy<PyObject>, T5: IntoPy<PyObject>, T6: IntoPy<PyObject>, T7: IntoPy<PyObject>, T8: IntoPy<PyObject>> IntoPy<Py<PyTuple>> for (T0, T1, T2, T3, T4, T5, T6, T7, T8)
impl<T0: IntoPy<PyObject>, T1: IntoPy<PyObject>, T2: IntoPy<PyObject>, T3: IntoPy<PyObject>, T4: IntoPy<PyObject>, T5: IntoPy<PyObject>, T6: IntoPy<PyObject>, T7: IntoPy<PyObject>, T8: IntoPy<PyObject>> IntoPy<Py<PyTuple>> for (T0, T1, T2, T3, T4, T5, T6, T7, T8)
sourceimpl<T0: IntoPy<PyObject>, T1: IntoPy<PyObject>, T2: IntoPy<PyObject>, T3: IntoPy<PyObject>, T4: IntoPy<PyObject>, T5: IntoPy<PyObject>, T6: IntoPy<PyObject>, T7: IntoPy<PyObject>, T8: IntoPy<PyObject>, T9: IntoPy<PyObject>> IntoPy<Py<PyTuple>> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)
impl<T0: IntoPy<PyObject>, T1: IntoPy<PyObject>, T2: IntoPy<PyObject>, T3: IntoPy<PyObject>, T4: IntoPy<PyObject>, T5: IntoPy<PyObject>, T6: IntoPy<PyObject>, T7: IntoPy<PyObject>, T8: IntoPy<PyObject>, T9: IntoPy<PyObject>> IntoPy<Py<PyTuple>> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)
sourceimpl<T0: IntoPy<PyObject>, T1: IntoPy<PyObject>, T2: IntoPy<PyObject>, T3: IntoPy<PyObject>, T4: IntoPy<PyObject>, T5: IntoPy<PyObject>, T6: IntoPy<PyObject>, T7: IntoPy<PyObject>, T8: IntoPy<PyObject>, T9: IntoPy<PyObject>, T10: IntoPy<PyObject>> IntoPy<Py<PyTuple>> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)
impl<T0: IntoPy<PyObject>, T1: IntoPy<PyObject>, T2: IntoPy<PyObject>, T3: IntoPy<PyObject>, T4: IntoPy<PyObject>, T5: IntoPy<PyObject>, T6: IntoPy<PyObject>, T7: IntoPy<PyObject>, T8: IntoPy<PyObject>, T9: IntoPy<PyObject>, T10: IntoPy<PyObject>> IntoPy<Py<PyTuple>> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)
sourceimpl<T0: IntoPy<PyObject>, T1: IntoPy<PyObject>, T2: IntoPy<PyObject>, T3: IntoPy<PyObject>, T4: IntoPy<PyObject>, T5: IntoPy<PyObject>, T6: IntoPy<PyObject>, T7: IntoPy<PyObject>, T8: IntoPy<PyObject>, T9: IntoPy<PyObject>, T10: IntoPy<PyObject>, T11: IntoPy<PyObject>> IntoPy<Py<PyTuple>> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)
impl<T0: IntoPy<PyObject>, T1: IntoPy<PyObject>, T2: IntoPy<PyObject>, T3: IntoPy<PyObject>, T4: IntoPy<PyObject>, T5: IntoPy<PyObject>, T6: IntoPy<PyObject>, T7: IntoPy<PyObject>, T8: IntoPy<PyObject>, T9: IntoPy<PyObject>, T10: IntoPy<PyObject>, T11: IntoPy<PyObject>> IntoPy<Py<PyTuple>> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)
sourceimpl<T0: IntoPy<PyObject>, T1: IntoPy<PyObject>, T2: IntoPy<PyObject>> IntoPy<Py<PyTuple>> for (T0, T1, T2)
impl<T0: IntoPy<PyObject>, T1: IntoPy<PyObject>, T2: IntoPy<PyObject>> IntoPy<Py<PyTuple>> for (T0, T1, T2)
sourceimpl<T0: IntoPy<PyObject>, T1: IntoPy<PyObject>, T2: IntoPy<PyObject>, T3: IntoPy<PyObject>> IntoPy<Py<PyTuple>> for (T0, T1, T2, T3)
impl<T0: IntoPy<PyObject>, T1: IntoPy<PyObject>, T2: IntoPy<PyObject>, T3: IntoPy<PyObject>> IntoPy<Py<PyTuple>> for (T0, T1, T2, T3)
sourceimpl<T0: IntoPy<PyObject>, T1: IntoPy<PyObject>, T2: IntoPy<PyObject>, T3: IntoPy<PyObject>, T4: IntoPy<PyObject>> IntoPy<Py<PyTuple>> for (T0, T1, T2, T3, T4)
impl<T0: IntoPy<PyObject>, T1: IntoPy<PyObject>, T2: IntoPy<PyObject>, T3: IntoPy<PyObject>, T4: IntoPy<PyObject>> IntoPy<Py<PyTuple>> for (T0, T1, T2, T3, T4)
sourceimpl<T0: IntoPy<PyObject>, T1: IntoPy<PyObject>, T2: IntoPy<PyObject>, T3: IntoPy<PyObject>, T4: IntoPy<PyObject>, T5: IntoPy<PyObject>> IntoPy<Py<PyTuple>> for (T0, T1, T2, T3, T4, T5)
impl<T0: IntoPy<PyObject>, T1: IntoPy<PyObject>, T2: IntoPy<PyObject>, T3: IntoPy<PyObject>, T4: IntoPy<PyObject>, T5: IntoPy<PyObject>> IntoPy<Py<PyTuple>> for (T0, T1, T2, T3, T4, T5)
sourceimpl<T0: IntoPy<PyObject>, T1: IntoPy<PyObject>, T2: IntoPy<PyObject>, T3: IntoPy<PyObject>, T4: IntoPy<PyObject>, T5: IntoPy<PyObject>, T6: IntoPy<PyObject>> IntoPy<Py<PyTuple>> for (T0, T1, T2, T3, T4, T5, T6)
impl<T0: IntoPy<PyObject>, T1: IntoPy<PyObject>, T2: IntoPy<PyObject>, T3: IntoPy<PyObject>, T4: IntoPy<PyObject>, T5: IntoPy<PyObject>, T6: IntoPy<PyObject>> IntoPy<Py<PyTuple>> for (T0, T1, T2, T3, T4, T5, T6)
sourceimpl<T0: IntoPy<PyObject>, T1: IntoPy<PyObject>, T2: IntoPy<PyObject>, T3: IntoPy<PyObject>, T4: IntoPy<PyObject>, T5: IntoPy<PyObject>, T6: IntoPy<PyObject>, T7: IntoPy<PyObject>> IntoPy<Py<PyTuple>> for (T0, T1, T2, T3, T4, T5, T6, T7)
impl<T0: IntoPy<PyObject>, T1: IntoPy<PyObject>, T2: IntoPy<PyObject>, T3: IntoPy<PyObject>, T4: IntoPy<PyObject>, T5: IntoPy<PyObject>, T6: IntoPy<PyObject>, T7: IntoPy<PyObject>> IntoPy<Py<PyTuple>> for (T0, T1, T2, T3, T4, T5, T6, T7)
sourceimpl IntoPy<Py<PyTypeError>> for &PyTypeError
impl IntoPy<Py<PyTypeError>> for &PyTypeError
sourcefn into_py(self, py: Python<'_>) -> Py<PyTypeError>
fn into_py(self, py: Python<'_>) -> Py<PyTypeError>
Performs the conversion.
sourceimpl IntoPy<Py<PyUnboundLocalError>> for &PyUnboundLocalError
impl IntoPy<Py<PyUnboundLocalError>> for &PyUnboundLocalError
sourcefn into_py(self, py: Python<'_>) -> Py<PyUnboundLocalError>
fn into_py(self, py: Python<'_>) -> Py<PyUnboundLocalError>
Performs the conversion.
sourceimpl IntoPy<Py<PyUnicodeDecodeError>> for &PyUnicodeDecodeError
impl IntoPy<Py<PyUnicodeDecodeError>> for &PyUnicodeDecodeError
sourcefn into_py(self, py: Python<'_>) -> Py<PyUnicodeDecodeError>
fn into_py(self, py: Python<'_>) -> Py<PyUnicodeDecodeError>
Performs the conversion.
sourceimpl IntoPy<Py<PyUnicodeEncodeError>> for &PyUnicodeEncodeError
impl IntoPy<Py<PyUnicodeEncodeError>> for &PyUnicodeEncodeError
sourcefn into_py(self, py: Python<'_>) -> Py<PyUnicodeEncodeError>
fn into_py(self, py: Python<'_>) -> Py<PyUnicodeEncodeError>
Performs the conversion.
sourceimpl IntoPy<Py<PyUnicodeError>> for &PyUnicodeError
impl IntoPy<Py<PyUnicodeError>> for &PyUnicodeError
sourcefn into_py(self, py: Python<'_>) -> Py<PyUnicodeError>
fn into_py(self, py: Python<'_>) -> Py<PyUnicodeError>
Performs the conversion.
sourceimpl IntoPy<Py<PyUnicodeTranslateError>> for &PyUnicodeTranslateError
impl IntoPy<Py<PyUnicodeTranslateError>> for &PyUnicodeTranslateError
sourcefn into_py(self, py: Python<'_>) -> Py<PyUnicodeTranslateError>
fn into_py(self, py: Python<'_>) -> Py<PyUnicodeTranslateError>
Performs the conversion.
sourceimpl IntoPy<Py<PyValueError>> for &PyValueError
impl IntoPy<Py<PyValueError>> for &PyValueError
sourcefn into_py(self, py: Python<'_>) -> Py<PyValueError>
fn into_py(self, py: Python<'_>) -> Py<PyValueError>
Performs the conversion.
sourceimpl IntoPy<Py<PyZeroDivisionError>> for &PyZeroDivisionError
impl IntoPy<Py<PyZeroDivisionError>> for &PyZeroDivisionError
sourcefn into_py(self, py: Python<'_>) -> Py<PyZeroDivisionError>
fn into_py(self, py: Python<'_>) -> Py<PyZeroDivisionError>
Performs the conversion.
sourceimpl IntoPy<Py<QueueEmpty>> for &QueueEmpty
impl IntoPy<Py<QueueEmpty>> for &QueueEmpty
sourcefn into_py(self, py: Python<'_>) -> Py<QueueEmpty>
fn into_py(self, py: Python<'_>) -> Py<QueueEmpty>
Performs the conversion.
sourceimpl IntoPy<Py<TimeoutError>> for &TimeoutError
impl IntoPy<Py<TimeoutError>> for &TimeoutError
sourcefn into_py(self, py: Python<'_>) -> Py<TimeoutError>
fn into_py(self, py: Python<'_>) -> Py<TimeoutError>
Performs the conversion.
sourceimpl<T> IntoPyPointer for Py<T>
impl<T> IntoPyPointer for Py<T>
sourceimpl<T> Serialize for Py<T> where
T: Serialize + PyClass,
impl<T> Serialize for Py<T> where
T: Serialize + PyClass,
sourcefn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
sourceimpl<T> ToPyObject for Py<T>
impl<T> ToPyObject for Py<T>
impl<T> Send for Py<T>
impl<T> Sync for Py<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for Py<T> where
T: RefUnwindSafe,
impl<T> Unpin for Py<T> where
T: Unpin,
impl<T> UnwindSafe for Py<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToBorrowedObject for T where
T: ToPyObject,
impl<T> ToBorrowedObject for T where
T: ToPyObject,
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more