Skip to main content

Module conversion

Module conversion 

Source
Expand description

Defines conversions between Rust and Python types.

Re-exportsยง

use crate::err::PyResult; ๐Ÿ”’
use crate::inspect::PyStaticExpr; ๐Ÿ”’ experimental-inspect
use crate::inspect::type_hint_identifier; ๐Ÿ”’ experimental-inspect
use crate::inspect::type_hint_subscript; ๐Ÿ”’ experimental-inspect
use crate::pyclass::boolean_struct::False; ๐Ÿ”’
use crate::pyclass::PyClassGuardError; ๐Ÿ”’
use crate::pyclass::PyClassGuardMutError; ๐Ÿ”’
use crate::types::PyList; ๐Ÿ”’
use crate::types::PyTuple; ๐Ÿ”’
use crate::Borrowed; ๐Ÿ”’
use crate::Bound; ๐Ÿ”’
use crate::BoundObject; ๐Ÿ”’
use crate::Py; ๐Ÿ”’
use crate::PyAny; ๐Ÿ”’
use crate::PyClass; ๐Ÿ”’
use crate::PyErr; ๐Ÿ”’
use crate::PyRef; ๐Ÿ”’
use crate::PyRefMut; ๐Ÿ”’
use crate::PyTypeCheck; ๐Ÿ”’
use crate::Python; ๐Ÿ”’
use core::convert::Infallible; ๐Ÿ”’
use core::marker::PhantomData; ๐Ÿ”’
pub(crate) use from_py_object_sequence::FromPyObjectSequence; ๐Ÿ”’
use crate::platform::prelude::*; ๐Ÿ”’

Modulesยง

from_py_object_sequence ๐Ÿ”’
into_pyobject_ext ๐Ÿ”’
private ๐Ÿ”’
test_no_clone ๐Ÿ”’

Traitsยง

FromPyObject
Extract a type from a Python object.
FromPyObjectOwned
A data structure that can be extracted without borrowing any data from the input.
IntoPyObject
Defines a conversion from a Rust type to a Python object, which may fail.
IntoPyObjectExt
Convenience methods for common usages of IntoPyObject. Every type that implements IntoPyObject also implements this trait.
โš ๏ธ Internal Docs โš ๏ธ Not Public API ๐Ÿ‘‰ Official Docs Here